aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-03 08:09:55 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-03-03 08:09:55 -0800
commit651d79a8c4d53f202f1ccf893be6cdd0cd4774f6 (patch)
tree3a70e42b96884804c20a871f838b8327e97b881d /src/parseTools.js
parent92ab0817911d330ed3b2a641c374180328e9bacf (diff)
allow parseArbitraryInt to parse illegal constants
Diffstat (limited to 'src/parseTools.js')
-rw-r--r--src/parseTools.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index 6a2089ad..5d3c0179 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -692,7 +692,7 @@ 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(bits % 32 == 0 || ('i' + (bits % 32)) in Runtime.INT_TYPES, 'Arbitrary-sized ints must tails that are of legal size');
+ assert(bits > 0); // NB: we don't check that the value in str can fit in this amount of bits
function str2vec(s) { // index 0 is the highest value
var ret = [];