Skip to content

Extended Shift to Number limit

J Sory requested to merge JASory/gnome-calculator:master into master

Fixes long-standing shift bug #306 (closed). This was caused by integer overflow while attempting to calculate the operand in only 31 bits. The solution is to replace it with a Number of value 2^shift which is limited by Number's max size. While marginally less efficient, gnome-calculator is unlikely to be used for bulk evaluation making unnoticeable speed differences inconsequential.

Merge request reports