GNOME Bugzilla – Bug 581020
shift operator incorrect for <<3 >>3
Last modified: 2009-05-02 05:29:56 UTC
Please describe the problem: When left or right shifting, values are incorrect. Steps to reproduce: 1. Input "7" 2. Left shift by 3 3. value == 42 value is incorrect. right shifting by 3 returns "7". Multiplication by powers of two return correct values. Actual results: 7 -> 42 b111 -> b101010 Expected results: 7 -> 56 b111 -> b111000 Does this happen every time? yes. Other information: gcalctool 5.24.3, fedora core 10. note: leftshifting by 1 and 2 seem to work just fine.
Thanks for taking the time to report this bug. This particular bug has already been reported into our bug tracking system, but we are happy to tell you that the problem has already been fixed. It should be solved in the next software version. You may want to check for a software upgrade. *** This bug has been marked as a duplicate of 569176 ***