diff --git a/src/testrawconverter.cc b/src/testrawconverter.cc index c029dd0..0f6528c 100644 --- a/src/testrawconverter.cc +++ b/src/testrawconverter.cc @@ -83,8 +83,8 @@ main (int argc, char **argv) uint64_t K = 33452759; // prime vector in_samples (K), out_samples (K); vector bytes (K * 4); - for (uint64_t k = 0; k <= K; k++) - in_samples[k] = (-1 + double (2 * k) / K); + for (uint64_t k = 0; k < K; k++) + in_samples[k] = (-1 + double (2 * k) / (K - 1)); test_int16 ("int16", in_samples, Encoding::SIGNED); test_int16 ("uint16", in_samples, Encoding::UNSIGNED);