summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Blum2011-10-24 20:59:55 -0700
committerJosh Blum2011-10-25 10:03:38 -0700
commitaae6c1ef27f5cacb949832a5bc3d403c5853c77b (patch)
tree72bddc81788a6c7d222c1aafa6e946ff7503d8cc
parentdbfb897eaf9415074e75f180d996a6c55c6fa04e (diff)
downloadgnuradio-aae6c1ef27f5cacb949832a5bc3d403c5853c77b.tar.gz
gnuradio-aae6c1ef27f5cacb949832a5bc3d403c5853c77b.tar.bz2
gnuradio-aae6c1ef27f5cacb949832a5bc3d403c5853c77b.zip
I'm sorry but llrintf had one of the best conversions of all time
-rw-r--r--gnuradio-core/src/lib/general/gri_float_to_int.cc2
1 files changed, 1 insertions, 1 deletions
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<int64_t>(rint(in[i]));
+ int64_t r = llrintf(in[i]);
if (r < MIN_INT)
r = MIN_INT;
else if (r > MAX_INT)