Afficher un message
Vieux 20/10/2007, 09h43   #2
christian.bau
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Inconsistent behaviour for (1 << 32)

A left or right shift of a value x by n invokes undefined behaviour if
n is negative, or greater than or equal to the number of bits in x.
Note that this includes the case "equal". So for 32 bit values, x <<
32 invokes undefined behaviour.

Don't do it.



  Réponse avec citation
 
Page generated in 0,05278 seconds with 9 queries