aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-09 13:32:39 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-09 13:32:39 -0800
commit6cf86dad35cc55413e0cfacd52a88f07b62d5eee (patch)
tree1ee8ea0f6a52c666e2d6bf7453727886061b6f5b /src
parentf062efa100d83ec5ef6d28983d827579ffa9ec25 (diff)
improve parsing of mathops to more properly detect types
Diffstat (limited to 'src')
-rw-r--r--src/intertyper.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intertyper.js b/src/intertyper.js
index b16b1e3e..f3d68ac4 100644
--- a/src/intertyper.js
+++ b/src/intertyper.js
@@ -803,6 +803,9 @@ function intertyper(data, sidePass, baseLineNums) {
var segments = splitTokenList(item.tokens.slice(1));
for (var i = 1; i <= 4; i++) {
if (segments[i-1]) {
+ if (i > 1 && segments[i-1].length == 1 && segments[0].length > 1) {
+ segments[i-1].unshift(segments[0][0]); // Add the type from the first segment, they are all alike
+ }
item['param'+i] = parseLLVMSegment(segments[i-1]);
}
}