Comment 1 for bug 1819187

Revision history for this message
Dominic Plunkett (dp111) wrote :

I suspect the issue is : 0x7FFFU<< (SingleDiff & ((0x20U << (0U))))

which is a shift by 32 , this is undefined so the compiler can do what it likes

If you change the 0x7FFFFU to 0x7FFFFLL you get what you would expect. I would suggest there are betters to code this function than using 0x7FFFFLL