From aae6c1ef27f5cacb949832a5bc3d403c5853c77b Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 24 Oct 2011 20:59:55 -0700 Subject: I'm sorry but llrintf had one of the best conversions of all time --- gnuradio-core/src/lib/general/gri_float_to_int.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnuradio-core/src/lib/general/gri_float_to_int.cc b/gnuradio-core/src/lib/general/gri_float_to_int.cc index 7f170a9d5..5271e60e2 100644 --- a/gnuradio-core/src/lib/general/gri_float_to_int.cc +++ b/gnuradio-core/src/lib/general/gri_float_to_int.cc @@ -37,7 +37,7 @@ void gri_float_to_int (const float *in, int *out, int nsamples) { for (int i = 0; i < nsamples; i++){ - int64_t r = static_cast(rint(in[i])); + int64_t r = llrintf(in[i]); if (r < MIN_INT) r = MIN_INT; else if (r > MAX_INT) -- cgit