From 34f7e66e82079ef25b72ba6d6931fac05cfb968a Mon Sep 17 00:00:00 2001 From: soggysec <sagui.gvsu@gmail.com> Date: Sun, 27 May 2018 09:40:11 -0700 Subject: Removed hardcoded value Replaced hardcoded MAX/MIN values with the ones defined in cstdint. --- gr-blocks/lib/float_array_to_int.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gr-blocks/lib/float_array_to_int.cc') diff --git a/gr-blocks/lib/float_array_to_int.cc b/gr-blocks/lib/float_array_to_int.cc index 49d3cdca7a..4fee3211e2 100644 --- a/gr-blocks/lib/float_array_to_int.cc +++ b/gr-blocks/lib/float_array_to_int.cc @@ -27,10 +27,10 @@ #define _ISOC9X_SOURCE #include <float_array_to_int.h> #include <math.h> -#include <stdint.h> +#include <cstdint> -static const int64_t MAX_INT = 2147483647; // (2^31)-1 -static const int64_t MIN_INT = -2147483648; // -(2^31) +static const int64_t MAX_INT = INT32_MAX; +static const int64_t MIN_INT = INT32_MIN; void float_array_to_int(const float *in, int *out, float scale, int nsamples) -- cgit v1.2.3