diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-04-24 20:07:17 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-04-24 20:16:21 -0700 |
commit | dcfca05e08744270b3145f7906c5cd46485a4b52 (patch) | |
tree | 673e8715688bdc3990bbfe9077158e764690ec01 /cpp/037call_reply | |
parent | 69e14325e3eaa3722766bb9706d7da5862b6ea26 (diff) | |
download | mu-dcfca05e08744270b3145f7906c5cd46485a4b52.tar.gz |
1171
Chip away at eliminating that 'pc' reference by first throwing out the most common expression that uses it: instructions[pc].
Diffstat (limited to 'cpp/037call_reply')
-rw-r--r-- | cpp/037call_reply | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/037call_reply b/cpp/037call_reply index 76e0ab9f..97e93fe3 100644 --- a/cpp/037call_reply +++ b/cpp/037call_reply @@ -22,8 +22,8 @@ Recipe_number["reply"] = REPLY; :(before "End Primitive Recipe Implementations") case REPLY: { vector<vector<int> > callee_results; - for (size_t i = 0; i < instructions[pc].ingredients.size(); ++i) { - callee_results.push_back(read_memory(instructions[pc].ingredients[i])); + for (size_t i = 0; i < current_instruction().ingredients.size(); ++i) { + callee_results.push_back(read_memory(current_instruction().ingredients[i])); } Current_routine->calls.pop(); assert(!Current_routine->calls.empty()); |