diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-05-22 14:58:12 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-05-22 14:58:12 -0700 |
commit | d12bc83b82e1e95b292cb280e00987ee3fa97b41 (patch) | |
tree | a6c0ae3a607112a171fe25ff16bd07ab157d7c81 /src/preamble.js | |
parent | 469d4e73bf4d2bded855f063fe8dbda7a8ca9648 (diff) |
note on CORRECT_OVERFLOWS
Diffstat (limited to 'src/preamble.js')
-rw-r--r-- | src/preamble.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/preamble.js b/src/preamble.js index 847d2d95..eaa02c90 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -129,7 +129,8 @@ function cRound(x) { //======================================== // Debugging tools - Mathop overflows //======================================== -function CHECK_OVERFLOW(value, bits) { +function CHECK_OVERFLOW(value, bits, ignore) { + if (ignore) return value; if (value === Infinity || value === -Infinity || Math.abs(value) >= Math.pow(2, bits)) { CorrectionsMonitor.note('Overflow'); } |