From 83613f063279ef6d39c8c579e2fefe040a9b1375 Mon Sep 17 00:00:00 2001 From: "rogerl%netscape.com" Date: Fri, 10 Aug 2001 00:25:47 +0000 Subject: [PATCH] Fixed bug in short value instruction operand printing. --- js2/src/bytecodegen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js2/src/bytecodegen.cpp b/js2/src/bytecodegen.cpp index 56071e08e325..0e23b563affc 100644 --- a/js2/src/bytecodegen.cpp +++ b/js2/src/bytecodegen.cpp @@ -2346,7 +2346,7 @@ uint32 printInstruction(Formatter &f, uint32 i, const ByteCodeModule& bcm) case SetElementOp: { uint16 u = bcm.getShort(i); - printFormat(f, "%uh", i); + printFormat(f, "%uh", u); i += 2; } break; @@ -2361,7 +2361,7 @@ uint32 printInstruction(Formatter &f, uint32 i, const ByteCodeModule& bcm) case DupInsertNOp: { uint16 u = bcm.getShort(i); - printFormat(f, "%uh", i); + printFormat(f, "%uh", u); i += 2; } break;