sac2c handles maximum negative constant incorrectly
Bugzilla Link | 255 |
Created on | Jul 31, 2006 21:15 |
Resolution | INVALID |
Resolved on | Aug 01, 2006 23:25 |
Version | 1.00beta |
OS | Linux |
Architecture | PC |
Extended Description
This program prints incorrect value. It looks like it's glueing the sign onto the constant after converting it, which leads to an integer overflow or something else nasty. use Array: all; use StdIO: all; int main() { print ([-2147483648]); return(0); }