Index: src/typing.h |
diff --git a/src/typing.h b/src/typing.h |
index c942b0063278708d4c4828652ebd7d9365943717..6298e5a41b3d6824f45cc6879e408f48014ce9b0 100644 |
--- a/src/typing.h |
+++ b/src/typing.h |
@@ -84,7 +84,7 @@ class AstTyper: public AstVisitor { |
int variable_index(Variable* var) { |
return var->IsStackLocal() ? var->index() : |
- var->IsParameter() ? -var->index() : kNoVar; |
+ var->IsParameter() ? -var->index() - 1 : kNoVar; |
} |
void VisitDeclarations(ZoneList<Declaration*>* declarations); |