On 5/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
"Andrew Finkenstadt" <[EMAIL PROTECTED]> wrote: > > Any objections to taking back patches that bit-wise and the result of the > overflowing addition with 0xff ? > The variables being added are unsigned chars and the result is stored in an unsigned char. Am I to understand that you have a compiler that does not limit the range of an unsigned char to 0x00 through 0xff? -- D. Richard Hipp <[EMAIL PROTECTED]>
I have a compiler that is configured in DEBUG mode, by default, to throw up (modal dialog boxes) warnings whenever it detects overflow on the assigned value. Frustrating. And an interesting choice by Microsoft. andy