diff --git a/js/js2/interpreter.cpp b/js/js2/interpreter.cpp index 192abc06d39..a279e2e3161 100644 --- a/js/js2/interpreter.cpp +++ b/js/js2/interpreter.cpp @@ -71,8 +71,8 @@ JSValue interpret(ICodeModule *iCode, const JSValues& args) static JSObject globals; InstructionIterator begin_pc = iCode->its_iCode->begin(); - InstructionIterator end_pc = iCode->its_iCode->end(); - InstructionIterator pc = begin_pc; + InstructionIterator end_pc = iCode->its_iCode->end(); + InstructionIterator pc = begin_pc; while (pc != end_pc) { Instruction* instruction = *pc; switch (instruction->opcode()) { diff --git a/js2/src/interpreter.cpp b/js2/src/interpreter.cpp index 192abc06d39..a279e2e3161 100644 --- a/js2/src/interpreter.cpp +++ b/js2/src/interpreter.cpp @@ -71,8 +71,8 @@ JSValue interpret(ICodeModule *iCode, const JSValues& args) static JSObject globals; InstructionIterator begin_pc = iCode->its_iCode->begin(); - InstructionIterator end_pc = iCode->its_iCode->end(); - InstructionIterator pc = begin_pc; + InstructionIterator end_pc = iCode->its_iCode->end(); + InstructionIterator pc = begin_pc; while (pc != end_pc) { Instruction* instruction = *pc; switch (instruction->opcode()) {