From dbe5c72411dcec8f6022f675600af5f1d28e38ff Mon Sep 17 00:00:00 2001 From: tupshin Date: Sun, 4 Apr 2004 09:05:30 +0000 Subject: [PATCH] fixed bug 516 (decrement nullpointerexception) darcs-hash:20040404090530-a9258-44b6e2e6b3d5584ba4cebde5a58bbfea52e07949.gz --- src/org/ibex/js/Parser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/ibex/js/Parser.java b/src/org/ibex/js/Parser.java index a4621db..aad793e 100644 --- a/src/org/ibex/js/Parser.java +++ b/src/org/ibex/js/Parser.java @@ -408,7 +408,7 @@ class Parser extends Lexer implements ByteCodes { b.add(parserLine, SWAP, null); b.add(parserLine, POP, null); b.add(parserLine, LITERAL, JS.N(1)); - b.add(parserLine, tok == INC ? SUB : ADD, null); // undo what we just did, since this is postfix + b.add(parserLine, tok == INC ? SUB : ADD, JS.N(2)); // undo what we just did, since this is postfix break; } case ASSIGN: { -- 1.7.10.4