From 986f6f8d0b14c4e56468c1c8887fadb2dc4e1463 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sun, 13 Nov 2011 17:22:49 -0800 Subject: convert: msvc warning fixes for sc8 table gen --- host/lib/convert/convert_with_tables.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'host/lib') diff --git a/host/lib/convert/convert_with_tables.cpp b/host/lib/convert/convert_with_tables.cpp index bcb7ec2c7..c45415d5d 100644 --- a/host/lib/convert/convert_with_tables.cpp +++ b/host/lib/convert/convert_with_tables.cpp @@ -70,7 +70,9 @@ public: void set_scalar(const double scalar){ for (size_t i = 0; i < sc16_table_len; i++){ const boost::uint16_t val = tohost(boost::uint16_t(i & 0xffff)); - _table[i] = std::complex(boost::int8_t(val >> 8)*scalar, boost::int8_t(val >> 0)*scalar); + const type real = type(boost::int8_t(val >> 8)*scalar); + const type imag = type(boost::int8_t(val >> 0)*scalar); + _table[i] = std::complex(real, imag); } } -- cgit v1.2.3