From 4bc0a070683e08eb8e2d1a4fdd2a6e80e711570e Mon Sep 17 00:00:00 2001 From: Steven Watanabe Date: Sat, 16 Feb 2013 22:15:31 +0000 Subject: [PATCH] Add explicit casts to avoid warnings on vc8. Fixes #5762. [SVN r82940] --- include/boost/random/detail/large_arithmetic.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/random/detail/large_arithmetic.hpp b/include/boost/random/detail/large_arithmetic.hpp index 3f96e07..66f6b4e 100644 --- a/include/boost/random/detail/large_arithmetic.hpp +++ b/include/boost/random/detail/large_arithmetic.hpp @@ -96,8 +96,8 @@ inline div_t muldivmod(boost::uintmax_t a, boost::uintmax_t b, boost::uintmax_t quotient[i - 2] = q; product[i] = 0; - product[i-1] = (rem >> bits) & mask; - product[i-2] = rem & mask; + product[i-1] = static_cast((rem >> bits) & mask); + product[i-2] = static_cast(rem & mask); } div_t result = {