diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-12-10 17:36:12 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-12-10 17:36:26 -0800 |
commit | d02b4f578039d03bfe49b5dfec88c6025c941c7f (patch) | |
tree | 75cb969d74267c6d273b20a3a936937e7b581fc9 | |
parent | a91c5a71d748b587eb5cbf2dce7f115bc8484833 (diff) |
do not skip vector types in function signatures
-rw-r--r-- | src/modules.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modules.js b/src/modules.js index e80115c4..b9b8ab5e 100644 --- a/src/modules.js +++ b/src/modules.js @@ -282,7 +282,12 @@ var Functions = { sig += Functions.getSignatureLetter(type); } else { var chunks = getNumIntChunks(type); - for (var j = 0; j < chunks; j++) sig += 'i'; + if (chunks > 0) { + for (var j = 0; j < chunks; j++) sig += 'i'; + } else { + // some special type like a SIMD vector + sig += Functions.getSignatureLetter(type); + } } } if (hasVarArgs) sig += 'i'; |