[Assist] GCC extreme bit-shift by constant vs. by variable

Michał Masłowski mtjm at mtjm.eu
Tue Oct 14 20:02:11 BST 2014

> I do not know if it is an error or regular behaviour (i. e. undefined
> by ANSI/ISO C).

It's undefined and should be fixed in the program.  It's sometimes
possible to misconfigure a program to use a 32-bit type for a variable
that is expected to be 64-bit where shifts by 32 are safe.

(To learn why these specific numbers are used, see the generated
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <https://lists.parabola.nu/pipermail/assist/attachments/20141014/f9e9882c/attachment-0001.bin>

More information about the Assist mailing list