[Bug c/59961] Use of size_t in leading term of computation with subtraction
schwab@linux-m68k.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 27 19:03:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59961
--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
-100 is not the same as -s1. The latter is SIZE_MAX + 1 - 100, a big number,
depending on the size of size_t. If s1 is declared as unsigned short or
unsigned char, it will be promoted to int before any futher operation is
applied.
More information about the Gcc-bugs
mailing list