diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-06-09 17:10:10 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-06-09 17:10:10 -0700 |
commit | 3a3369d560fface3e0e8f094ac111d2b6ab18ec7 (patch) | |
tree | 48f1690304800fc95b08abb8ed47a7458c09c763 | |
parent | 892412ba8546bda54007b311da4ea11136c68629 (diff) |
better warning about 64-bit overflows
-rw-r--r-- | src/parseTools.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index ad6f288f..2e5e109d 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -983,7 +983,7 @@ function getGetElementPtrIndexes(item) { function handleOverflow(text, bits) { if (!bits) return text; var correct = correctOverflows(); - warn(!correct || bits <= 32, 'Cannot correct overflows of this many bits: ' + bits); + warn(!correct || bits <= 32, 'Cannot correct overflows of this many bits: ' + bits + ' at line ' + Framework.currItem.lineNum); if (CHECK_OVERFLOWS) return 'CHECK_OVERFLOW(' + text + ', ' + bits + ', ' + Math.floor(correctSpecificOverflow() && !AUTO_OPTIMIZE) + ( AUTO_OPTIMIZE ? ', "' + Debugging.getIdentifier(Framework.currItem.lineNum) + '"' : '' ) + ')'; |