Public bug reported:
Binary package hint: gcalctool
The "&16" and "&32" functions both fail for large inputs:
u16(11111111111111111111)
u32(11111111111111111111)
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:
11111111111111111111 Mod 65536 = 29127
11111111111111111111 Mod 4294967291 = 3098111297
ProblemType: Bug
Architecture: i386
Date: Thu Jan 10 23:57:29 2008
DistroRelease: Ubuntu 7.10
ExecutablePath: /usr/bin/gcalctool
NonfreeKernelModules: vmnet vmmon nvidia
Package: gcalctool 5.20.2-0ubuntu1
PackageArchitecture: i386
ProcCmdline: gcalctool
ProcCwd: /home/andy
ProcEnviron:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
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
** Affects: gcalctool (Ubuntu)
Importance: Undecided
Status: New
** Tags: apport-bug
--
"unsigned integer value" functions fail for large numbers
https://bugs.launchpad.net/bugs/181763
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs