aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-12-10 17:36:12 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-12-10 17:36:26 -0800
commitd02b4f578039d03bfe49b5dfec88c6025c941c7f (patch)
tree75cb969d74267c6d273b20a3a936937e7b581fc9
parenta91c5a71d748b587eb5cbf2dce7f115bc8484833 (diff)
do not skip vector types in function signatures
-rw-r--r--src/modules.js7
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';