From: Peter Meerwald <p.meerwald@xxxxxxxxxxxxxxxxxx> --- src/tests/cpu-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/cpu-test.c b/src/tests/cpu-test.c index 35775bd..fcab44a 100644 --- a/src/tests/cpu-test.c +++ b/src/tests/cpu-test.c @@ -249,7 +249,7 @@ static void run_conv_test_float_to_s16(pa_convert_func_t func, pa_convert_func_t orig_func(nsamples, floats, samples_ref); } PA_CPU_TEST_RUN_STOP - fail_unless(memcmp(samples_ref, samples, sizeof(nsamples)) == 0); + fail_unless(memcmp(samples_ref, samples, nsamples * sizeof(int16_t)) == 0); } } -- 1.7.9.5