aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/arm/arm_interface.h
diff options
context:
space:
mode:
authorGravatar Disruption <stomasortiz@gmail.com>2014-06-01 21:08:26 +0200
committerGravatar Disruption <stomasortiz@gmail.com>2014-06-01 21:08:26 +0200
commit0be75c13ee05c43ac4afb702346cc4083e8d2df6 (patch)
tree43498de81a8b767ca8f1835472483a0d2b68bc3b /src/core/arm/arm_interface.h
parent6448c2f30062c085330ff26a4812c9a91c7b492c (diff)
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
Diffstat (limited to 'src/core/arm/arm_interface.h')
-rw-r--r--src/core/arm/arm_interface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/arm/arm_interface.h b/src/core/arm/arm_interface.h
index b73786cc..34a2eba1 100644
--- a/src/core/arm/arm_interface.h
+++ b/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