include/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp b/include/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp index 2ce7b74..49c444f 100644 --- a/include/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp +++ b/include/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp @@ -68,7 +68,7 @@ namespace boost { namespace spirit { namespace traits typedef unsignedtype type; \ static type call(signedtype n) \ { \ - return (n >= 0) ? n : (unsignedtype)(-n); \ + return unsignedtype((n >= 0) ? n : (-n)); \ } \ } \ /**/