Boost logo

Boost :

From: Craig Henderson (cdm.henderson_at_[hidden])
Date: 2002-09-22 13:29:00


There is a small problem with the CRC library that is shown up at runtime
with the MSVC7 compiler option "Smaller Type Check" /RTCc. The problem is in
crc.hpp at line 550 which reads

{ return x ^ ( rem >> (DoReflect ? 0u : Bits - CHAR_BIT) ); }

Changing this to
{ return 0xff & (x ^ ( rem >> (DoReflect ? 0u : Bits - CHAR_BIT) ) ); }

solves the problem.

Regards
-- Craig


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk