diff options
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/convert/gen_convert_general.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/convert/gen_convert_general.py b/host/lib/convert/gen_convert_general.py index b8d64aa4b..46a0c8185 100644 --- a/host/lib/convert/gen_convert_general.py +++ b/host/lib/convert/gen_convert_general.py @@ -103,8 +103,8 @@ DECLARE_CONVERTER($(cpu_type), $(width), sc16_item16_usrp1, 1, PRIORITY_GENERAL) for (size_t i = 0, j = 0; i < nsamps; i++){ #for $w in range($width) - output[j++] = $(to_wire)(boost::int16_t(input$(w)[i].real()$(do_scale))); - output[j++] = $(to_wire)(boost::int16_t(input$(w)[i].imag()$(do_scale))); + output[j++] = $(to_wire)(boost::uint16_t(boost::int16_t(input$(w)[i].real()$(do_scale)))); + output[j++] = $(to_wire)(boost::uint16_t(boost::int16_t(input$(w)[i].imag()$(do_scale)))); #end for } } |