From: SourceForge.net <no...@so...> - 2006-09-28 19:26:15
|
Bugs item #1567222, was opened at 2006-09-28 14:29 Message generated for change (Comment added) made by dgp You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1567222&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 47. Number Handling Group: development: 8.5a5 Status: Open Resolution: None Priority: 9 Submitted By: Don Porter (dgp) Assigned to: Don Porter (dgp) Summary: error in bignum << computation Initial Comment: On 32-bit systems, the correct result: % expr {(500000000000000<<28)} 134217728000000000000000 On an LP64 system: % expr {(500000000000000<<28)} -781880310697558016 ---------------------------------------------------------------------- >Comment By: Don Porter (dgp) Date: 2006-09-28 15:26 Message: Logged In: YES user_id=80530 Wow. That was subtle. Code had literal "1" where it needed to have "1L" or perhaps "((long)1)". ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1567222&group_id=10894 |