diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-10-18 16:14:17 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-18 17:31:20 -0700 |
commit | 5a09572550870a5304b0a5d2e425e3f579cd1ed2 (patch) | |
tree | d549422beb58aedd749efc6992b16197df14dbd5 /src/jsifier.js | |
parent | 8f14b5c6400133e88c89060ce978114b2455d667 (diff) |
avoid allocating huge lists for [BIGNUM x type] types
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 70139d89..6da2b09f 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -153,7 +153,7 @@ function JSify(data, functionsOnly, givenFunctions) { } // Add current value(s) var currValue = values[i]; - if (USE_TYPED_ARRAYS == 2 && typeData.fields[i] == 'i64') { + if (USE_TYPED_ARRAYS == 2 && (typeData.fields[i] == 'i64' || (typeData.flatFactor && typeData.fields[0] == 'i64'))) { // 'flatten' out the 64-bit value into two 32-bit halves var parts = parseI64Constant(currValue, true); ret[index++] = parts[0]; |