about summary refs log tree commit diff stats
path: root/cpp/037call_reply
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-24 19:58:38 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-24 19:58:38 -0700
commitb75e94b317509b26d60223db6cf8f388890a79fb (patch)
tree87ea2d6fbba474b3e1e7312229cc33c0d925ee0e /cpp/037call_reply
parente7eeb47570abdc9c416a7dc4a88febfb380ef98a (diff)
downloadmu-b75e94b317509b26d60223db6cf8f388890a79fb.tar.gz
1169 - use the global variable god gave you
Diffstat (limited to 'cpp/037call_reply')
-rw-r--r--cpp/037call_reply8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/037call_reply b/cpp/037call_reply
index 22548eef..76e0ab9f 100644
--- a/cpp/037call_reply
+++ b/cpp/037call_reply
@@ -25,10 +25,10 @@ case REPLY: {
   for (size_t i = 0; i < instructions[pc].ingredients.size(); ++i) {
     callee_results.push_back(read_memory(instructions[pc].ingredients[i]));
   }
-  rr.calls.pop();
-  assert(!rr.calls.empty());
-  size_t& caller_pc = rr.calls.top().pc;
-  instruction& caller_instruction = Recipe[rr.calls.top().running_recipe].steps[caller_pc];
+  Current_routine->calls.pop();
+  assert(!Current_routine->calls.empty());
+  size_t& caller_pc = Current_routine->calls.top().pc;
+  instruction& caller_instruction = Recipe[Current_routine->calls.top().running_recipe].steps[caller_pc];
   assert(caller_instruction.products.size() <= callee_results.size());
   for (size_t i = 0; i < caller_instruction.products.size(); ++i) {
     trace("run") << "result " << i << " is " << to_string(callee_results[i]);