diff options
author | soggysec <sagui.gvsu@gmail.com> | 2018-05-22 10:30:49 -0700 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2018-05-31 09:29:56 +0200 |
commit | cdc8a4087559f872c6d07fc0ce0d16a7100aafaa (patch) | |
tree | aa768e2d8fbb6992f66d8b28768e84fdf9f7d483 | |
parent | 493338d86d82e9e10f5d9d4b42f2473b7275c7a2 (diff) |
Fixing the MIN_INT to be actual MIN_INT
There was an off-by-one in the MIN_INT
-rw-r--r-- | gr-blocks/lib/float_array_to_int.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-blocks/lib/float_array_to_int.cc b/gr-blocks/lib/float_array_to_int.cc index 66b112c066..49d3cdca7a 100644 --- a/gr-blocks/lib/float_array_to_int.cc +++ b/gr-blocks/lib/float_array_to_int.cc @@ -30,7 +30,7 @@ #include <stdint.h> static const int64_t MAX_INT = 2147483647; // (2^31)-1 -static const int64_t MIN_INT = -2147483647; // -(2^31)-1 +static const int64_t MIN_INT = -2147483648; // -(2^31) void float_array_to_int(const float *in, int *out, float scale, int nsamples) |