diff options
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 0a246fdd..45cee958 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -605,6 +605,8 @@ function makeCopyI64(value) { function parseArbitraryInt(str, bits) { // We parse the string into a vector of digits, base 10. This is convenient to work on. + assert(('i' + (bits % 32)) in Runtime.INT_TYPES, 'Arbitrary-sized ints must tails that are of legal size'); + function str2vec(s) { // index 0 is the highest value var ret = []; for (var i = 0; i < s.length; i++) { |