[Boost-bugs] [Boost C++ Libraries] #4208: Boost::crc fails if Visual C++'s "/RTCc Convert to smaller type checks" is enabled

Subject: [Boost-bugs] [Boost C++ Libraries] #4208: Boost::crc fails if Visual C++'s "/RTCc Convert to smaller type checks" is enabled
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-05-12 12:22:31


#4208: Boost::crc fails if Visual C++'s "/RTCc Convert to smaller type checks" is
enabled
--------------------------+-------------------------------------------------
 Reporter: anonymous | Owner: dlwalker
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: crc
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: |
--------------------------+-------------------------------------------------
 Boost::crc fails if Visual C++'s "/RTCc Convert to smaller type checks" is
 enabled

 I would suggest to change crc_helper::index() from
 {{{
 static unsigned char index( value_type rem, unsigned char x )
 { return x ^ rem; }
 }}}
 to
 {{{
 static unsigned char index( value_type rem, unsigned char x )
 { return x ^ (rem & 0xFF); }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4208>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:03 UTC