commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 02/05: gnuradio-runtime: Fix pmt serializat


From: git
Subject: [Commit-gnuradio] [gnuradio] 02/05: gnuradio-runtime: Fix pmt serialization for double
Date: Mon, 2 May 2016 04:54:37 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit cd07e5e56647a9380ccd0f25960164d72b338e10
Author: johschmitz <address@hidden>
Date:   Thu Apr 28 17:19:17 2016 +0200

    gnuradio-runtime: Fix pmt serialization for double
    
    double was wrongly casted to float
---
 gnuradio-runtime/lib/pmt/pmt_serialize.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnuradio-runtime/lib/pmt/pmt_serialize.cc 
b/gnuradio-runtime/lib/pmt/pmt_serialize.cc
index 6147082..12a97b9 100644
--- a/gnuradio-runtime/lib/pmt/pmt_serialize.cc
+++ b/gnuradio-runtime/lib/pmt/pmt_serialize.cc
@@ -297,7 +297,7 @@ serialize(pmt_t obj, std::streambuf &sb)
     }
 
     if(is_real(obj)) {
-      float i = to_double(obj);
+      double i = to_double(obj);
       ok = serialize_untagged_u8(PST_DOUBLE, sb);
       ok &= serialize_untagged_f64(i, sb);
       return ok;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]