Ticket #7433: crc-rtcheck-fix.diff

File crc-rtcheck-fix.diff, 784 bytes (added by Franz Detro <franz.detro@…>, 10 years ago)
  • boost/crc.hpp

    From d5b090f3a43b7cb81072f5fc26e672bf6712f811 Mon Sep 17 00:00:00 2001
    From: Franz Detro <franz.detro@native-instruments.de>
    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 b namespace detail  
    575575
    576576        // Compare a byte to the remainder's highest byte
    577577        static  unsigned char  index( value_type rem, unsigned char x )
    578             { return x ^ rem; }
     578            { return (x ^ rem) & 0xff; }
     579
    579580
    580581        // Shift out the remainder's highest byte
    581582        static  value_type  shift( value_type rem )