[7725] in Athena Bugs
Re: decmips 7.2R: saber
daemon@ATHENA.MIT.EDU (Ken Raeburn)
Tue Jul 9 17:19:50 1991
Date: Tue, 9 Jul 91 17:19:36 -0400
From: Ken Raeburn <Raeburn@MIT.EDU>
To: marc@ATHENA.MIT.EDU
Cc: bugs@ATHENA.MIT.EDU
In-Reply-To: [7724] in Athena Bugs
> -2147483648 is a valid signed long.
Actually, no, it isn't. It's unsigned.
Problem is, C will parse it as <-> <number>, and since the number
exceeds the range of signed long, it becomes unsigned long. *Then*
the negation is applied to it, but the result of negating an unsigned
value is still unsigned.
To properly express the value you want, you should use
-2147483647-1
instead.