From d23df2d9411a0d80e00a6927fff946f2c5f906bc Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 15 Feb 2019 16:42:34 -0800 Subject: lib: Fix various type-conversion compiler warnings This makes more type-conversions explicit, to reduce the number of warnings specifically for MSVC. --- host/lib/rfnoc/nocscript/expression.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/rfnoc/nocscript/expression.cpp') diff --git a/host/lib/rfnoc/nocscript/expression.cpp b/host/lib/rfnoc/nocscript/expression.cpp index 32065bda1..5e03485be 100644 --- a/host/lib/rfnoc/nocscript/expression.cpp +++ b/host/lib/rfnoc/nocscript/expression.cpp @@ -49,7 +49,7 @@ expression_literal::expression_literal( _bool_val = true; } else { // lexical cast to bool is too picky - _bool_val = bool(std::stoi(_val)); + _bool_val = (std::stoi(_val) != 0); } break; -- cgit v1.2.3