"unsigned integer value" functions fail for large numbers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GCalctool |
Fix Released
|
Medium
|
|||
gcalctool (Ubuntu) |
Fix Released
|
Low
|
Ubuntu Desktop Bugs |
Bug Description
Binary package hint: gcalctool
The "&16" and "&32" functions both fail for large inputs:
u16(11111111111
u32(11111111111
Both evaluate to 0 (and their least significant bit is 0)
But doing the "near" equivalent (which stuffs up for negatives and behaves differently for non-integer inputs) works:
111111111111111
111111111111111
ProblemType: Bug
Architecture: i386
Date: Thu Jan 10 23:57:29 2008
DistroRelease: Ubuntu 7.10
ExecutablePath: /usr/bin/gcalctool
NonfreeKernelMo
Package: gcalctool 5.20.2-0ubuntu1
PackageArchitec
ProcCmdline: gcalctool
ProcCwd: /home/andy
ProcEnviron:
PATH=/
LANG=en_AU.UTF-8
SHELL=/usr/bin/zsh
SourcePackage: gcalctool
Uname: Linux chicken 2.6.22-14-generic #1 SMP Tue Dec 18 08:02:57 UTC 2007 i686 GNU/Linux
Related branches
Changed in gcalctool: | |
status: | Unknown → Confirmed |
Changed in gcalctool: | |
status: | Confirmed → Fix Released |
Changed in gcalctool: | |
importance: | Unknown → Medium |
Thanks for the bug report. Reproduced here.