01-19-2006 06:47 AM
01-19-2006 09:09 AM
I think you will find that a shift operation must be less than the number of bits in the word being shifted, or else the result is undefined. So for a 32 bit integer, you cannot shift by more than 31. Can't lay my hands on the C documentation right now - relying on my memory. (A risky strategy...)
JR
01-19-2006 09:17 AM
Hmm.. I'm going to have to start reading these messages from newest to oldest, instead of the other way round. That's twice today I've been caught out replying to duplicated posts which already have perfectly good replies to the later version.
JR