#150 optimizer skips a cast

closed-fixed
3
2013-05-25
2001-09-25
Johan Knol
No

char global_c=200;

void main (void) {
int i, j;
char local_c=200;
i=global_c;
j=local_c;
printf ("char 200: %d %d\n", global_c, local_c);
printf ("char 200: %d %d\n", i, j);
}

char 200: -56 200
char 200: -56 200

Discussion

  • Johan Knol

    Johan Knol - 2002-01-16
    • milestone: --> fixed
    • assigned_to: nobody --> johanknol
    • status: open --> closed-fixed
     
  • Johan Knol

    Johan Knol - 2002-01-16

    Logged In: YES
    user_id=63512

    fixed in SDCCval.c:1.151

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks