Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 333
    • Issues 333
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • Deployments
    • Deployments
    • Releases
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #1406
Closed
Open
Created Jul 31, 2006 by Robert Bernecky@rbeDeveloper

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);
}
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking