On 2005-04-27 14:30:01 -0700, Mike Stump wrote: > On Apr 27, 2005, at 5:15 AM, Neil Booth wrote: > >Even better, you can turn of the warning with a cast, making your > >intent explicit to the compiler, so there's every reason to have > >it on by default. > > And, if you don't like casts, you can (...)&255 or whatever.
This is quite dirty if the type comes from an internal structure of some library, where the size of the integer may depend on the architecture or may change in the future... Do you see a better solution? -- Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/> Work: CR INRIA - computer arithmetic / SPACES project at LORIA