소스 검색

Added 'this' reference to num_instructions field so it's properly updated,as before the method was affecting the local method parameter rather than the class field

Disruption 12 년 전
부모
커밋
0be75c13ee
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/core/arm/arm_interface.h

+ 1 - 1
src/core/arm/arm_interface.h

@@ -25,7 +25,7 @@ public:
      */
     void Run(int num_instructions) {
         ExecuteInstructions(num_instructions);
-        num_instructions += num_instructions;
+        this->num_instructions += num_instructions;
     }
 
     /// Step CPU by one instruction