|
Boost Users : |
Subject: Re: [Boost-users] [Format] boost 1.48.0, vs2010 runtime check triggered by cast to smaller type in feed_args.hpp + crc.hpp
From: Bogdan Slusarczyk (bogdan.slusarczyk_at_[hidden])
Date: 2011-12-09 09:11:54
> I had the same with 1.38, and as solution I changed this line
> (feed_args.hpp):
> static_cast<size_type>(specs.truncate_ - !!prefix_space),
> into
> static_cast<size_type>( ( specs.truncate_ -
> !!prefix_space) & size_type( ~0 ) ),
>
similar thing for crc.hpp:
- { return x ^ rem; }
+ { return ( ( x ^ rem ) & unsigned char( ~0 ) ); }
Regards,
Bogdan
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net