After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 581020 - shift operator incorrect for <<3 >>3
shift operator incorrect for <<3 >>3
Status: RESOLVED DUPLICATE of bug 569176
Product: gnome-calculator
Classification: Core
Component: general
5.24.x
Other All
: Normal normal
: ---
Assigned To: gcalctool maintainers
gcalctool maintainers
Depends on:
Blocks:
 
 
Reported: 2009-05-01 15:53 UTC by John McDole
Modified: 2009-05-02 05:29 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description John McDole 2009-05-01 15:53:40 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.
Comment 1 Andreas Köhler 2009-05-02 05:29:56 UTC
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 ***