> I've just written the following code: > > Int32 value = 1 << 16; > > Compiling with gcc and PRC-Tools, sdk5-r3, I get the following warning: > > warning: left shift count >= width of type > > Shifting left by 15 doesn't generate the warning. Anybody have a clue > about what's going wrong, here?
Ah, never mind, momentary brain freeze. The solution, of course, is that '1' is a short integer. If I want that 1 to be a long integer, I need to write it as '1L'. Funny that the answer always seems obvious twenty seconds after sending mail to a community support e-mail address.. :) Trevor Powell -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
