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 569176 - Bit shift gives incorrect values for shifts greater than 1
Bit shift gives incorrect values for shifts greater than 1
Status: RESOLVED FIXED
Product: gnome-calculator
Classification: Core
Component: general
5.24.x
Other All
: Normal normal
: ---
Assigned To: Robert Ancell
gcalctool maintainers
: 579849 581020 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-01-26 11:30 UTC by Robert Ancell
Modified: 2009-05-02 05:29 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description Robert Ancell 2009-01-26 11:30:42 UTC
The new bit shift code introduced in 5.24.2 has the wrong logic. A left shift multiplies the number by:
2*(shift count)
not
2^(shift count)
Comment 1 Robert Ancell 2009-01-26 11:33:40 UTC
This was introduced in bug 509988.
Comment 3 Robert Ancell 2009-04-23 03:40:58 UTC
*** Bug 579849 has been marked as a duplicate of this bug. ***
Comment 4 Andreas Köhler 2009-05-02 05:29:56 UTC
*** Bug 581020 has been marked as a duplicate of this bug. ***