#308 shifting left without cast gives segv

closed-fixed
5
2013-05-25
2002-03-02
No

#define CONST 3

int main(void) {
int x = 1;
/* "(int) CONST" solves */
x = CONST << (x>4 ? 4 : x);
return 0;
}

Discussion

  • Johan Knol

    Johan Knol - 2002-03-02
    • labels: --> C-Front End
    • milestone: --> fixed
    • assigned_to: nobody --> johanknol
    • status: open --> closed-fixed
     
  • Johan Knol

    Johan Knol - 2002-03-02

    Logged In: YES
    user_id=63512

    fixed in SDCCast.c:1.144

     

Log in to post a comment.