aboutsummaryrefslogtreecommitdiff
path: root/src/runtime.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-09-14 18:08:52 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-09-14 18:08:52 -0700
commitce07f2aa7735c267785115c23f28321f61c7b250 (patch)
tree03ea71dbf30887f38dc585b678d6299b5e608661 /src/runtime.js
parent55013f30bce701468b5dcdd00dd0df3d53c75c33 (diff)
intentionally do reSign in printing %d
Diffstat (limited to 'src/runtime.js')
-rw-r--r--src/runtime.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime.js b/src/runtime.js
index 7e3c7b84..719be637 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -268,7 +268,7 @@ function reSign(value, bits, ignore, sig) {
#if CHECK_SIGNS
var noted = false;
#endif
- if (value >= half) {
+ if (value >= half && (bits <= 32 || value > half)) { // for huge values, we can hit the precision limit and always get true here. so don't do that
#if CHECK_SIGNS
if (!ignore) {
CorrectionsMonitor.note('ReSign', 0, sig);