瀏覽代碼

Merge pull request #12 from Disruption/stomas/bugfix/wrong-field-reference

Added 'this' reference to num_instructions field so it's properly updated
bunnei 12 年之前
父節點
當前提交
7527f238a1
共有 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