From d5b090f3a43b7cb81072f5fc26e672bf6712f811 Mon Sep 17 00:00:00 2001 From: Franz Detro Date: Tue, 4 Sep 2012 12:33:17 +0200 Subject: [PATCH] fix VC runtime check (int truncated to a char) --- boost/crc.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boost/crc.hpp b/boost/crc.hpp index 6be5aa1..4020606 100644 --- a/boost/crc.hpp +++ b/boost/crc.hpp @@ -575,7 +575,8 @@ namespace detail // Compare a byte to the remainder's highest byte static unsigned char index( value_type rem, unsigned char x ) - { return x ^ rem; } + { return (x ^ rem) & 0xff; } + // Shift out the remainder's highest byte static value_type shift( value_type rem ) -- 1.7.11.1