diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-04-04 18:37:00 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-04-04 18:37:00 -0700 |
commit | bae4c91d0acf4fd70e0c17ad178b07d2eb6345d9 (patch) | |
tree | 8a02a4334992a4589896307279edfae1c2eeab83 /src/parseTools.js | |
parent | 10f70b2a9bd7b0a1fdc3c140bf3c00ebad8420a9 (diff) |
pre-apply {{{ FI_* }}} as well
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 639c583b..20049094 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -1470,12 +1470,12 @@ function writeInt8s(slab, i, value, type) { case 'i1': case 'i8': temp8[0] = value; currSize = 1; break; case 'i16': temp16[0] = value; currSize = 2; break; - case 'i64': // fall through, i64 is two i32 chunks - case 'i32': temp32[0] = value; currSize = 4; break; case 'float': temp32f[0] = value; currSize = 4; break; case 'double': temp64f[0] = value; currSize = 8; break; + case 'i64': // fall through, i64 is two i32 chunks + case 'i32': // fall through, i32 can be a pointer default: { - if (type[type.length-1] == '*') { + if (type == 'i32' || type == 'i64' || type[type.length-1] == '*') { if (!isNumber(value)) { // function table stuff, etc. slab[i] = value; slab[i+1] = slab[i+2] = slab[i+3] = 0; |