aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-17 19:15:02 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-17 19:15:02 -0800
commitd7b9dd7b36d3738f1b2553ad9872cde20a2f9ad9 (patch)
treec092a2046532d0b5d31f39f96e1cdacee475cfc3
parent832fb4e91ac4a454e7066ddc59db7db72ab11aac (diff)
do not replace type of later parameters in mathops, if they are themselves types (fix regression in 6cf86dad35cc55413e0cfacd52a88f07b62d5eee)
-rw-r--r--src/intertyper.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intertyper.js b/src/intertyper.js
index ba9e3f0d..4b4544ae 100644
--- a/src/intertyper.js
+++ b/src/intertyper.js
@@ -801,7 +801,7 @@ 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) {
+ if (i > 1 && segments[i-1].length == 1 && segments[0].length > 1 && !isType(segments[i-1][0].text)) {
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]);