diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-24 14:10:12 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-24 14:10:12 -0800 |
commit | 29d731f8a83aaeec772c20936730d88f5f7c7171 (patch) | |
tree | ddcf16c73dbe4204761def20aa775ff5b82b4e03 | |
parent | bc0e1bc5129b3072fa2805edfa5bd0ce39874b17 (diff) |
fix memset call from makeSetValues
-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 3e361731..581a1f1e 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -1265,7 +1265,7 @@ function makeSetValues(ptr, pos, value, type, num, align) { // If we don't know how to handle this at compile-time, or handling it is best done in a large amount of code, call memset // TODO: optimize the case of numeric num but non-numeric value if (!isNumber(num) || !isNumber(value) || (align < 4 && parseInt(num) >= SEEK_OPTIMAL_ALIGN_MIN)) { - return '_memset(' + asmCoercion(getFastValue(ptr, '+', pos), 'i32') + ', ' + asmCoercion(value, 'i32') + ', ' + asmCoercion(num, 'i32') + ', ' + align + ')'; + return '_memset(' + asmCoercion(getFastValue(ptr, '+', pos), 'i32') + ', ' + asmCoercion(value, 'i32') + ', ' + asmCoercion(num, 'i32') + ')'; } num = parseInt(num); value = parseInt(value); |