From 997072da13acb1036ff1198365245ba5861c5fff Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Tue, 5 Oct 2004 12:39:20 +0000 Subject: [PATCH] Fix minor errors in (float|double)_(int|short)_test(). --- tests/floating_point_test.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/floating_point_test.tpl b/tests/floating_point_test.tpl index b07e9c55..415e4a66 100644 --- a/tests/floating_point_test.tpl +++ b/tests/floating_point_test.tpl @@ -309,10 +309,10 @@ static void sfinfo.samplerate = SAMPLE_RATE ; sfinfo.frames = ARRAY_LEN ([+ (get "int_name") +]_data) ; sfinfo.channels = 1 ; - sfinfo.format = SF_FORMAT_AU | [+ (get "minor_type") +] ; + sfinfo.format = SF_ENDIAN_CPU | SF_FORMAT_AU | [+ (get "minor_type") +] ; file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, __LINE__) ; - test_write_double_or_die (file, 0, double_data, ARRAY_LEN ([+ (get "float_name") +]_data), __LINE__) ; + test_write_[+ (get "float_name") +]_or_die (file, 0, [+ (get "float_name") +]_data, ARRAY_LEN ([+ (get "float_name") +]_data), __LINE__) ; sf_close (file) ; file = test_open_file_or_die (filename, SFM_READ, &sfinfo, __LINE__) ; @@ -329,7 +329,7 @@ static void sf_command (file, SFC_SET_SCALE_FLOAT_INT_READ, NULL, SF_TRUE) ; - test_read_[+ (get "int_name") +]_or_die (file, 0, [+ (get "int_name") +]_data, ARRAY_LEN ([+ (get "float_name") +]_data), __LINE__) ; + test_read_[+ (get "int_name") +]_or_die (file, 0, [+ (get "int_name") +]_data, ARRAY_LEN ([+ (get "int_name") +]_data), __LINE__) ; sf_close (file) ; max = 0 ;