about summary refs log tree commit diff stats
path: root/cpp/023call_reply
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-14 19:06:57 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-14 19:08:38 -0700
commit82ac0b7ecbc145ed8c8ecd8309166f654af1ee75 (patch)
treefb24d253bec1b3a24bf9d3e6d746111dbf4b856f /cpp/023call_reply
parent0edf822f996c5def4588cc207d1977cffc3e9a0c (diff)
downloadmu-82ac0b7ecbc145ed8c8ecd8309166f654af1ee75.tar.gz
1063 - variable names for surrounding spaces now work
This was a pain to debug.
Diffstat (limited to 'cpp/023call_reply')
-rw-r--r--cpp/023call_reply1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/023call_reply b/cpp/023call_reply
index 476875ab..4c9fe34c 100644
--- a/cpp/023call_reply
+++ b/cpp/023call_reply
@@ -27,6 +27,7 @@ case REPLY: {
     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];
   assert(caller_instruction.products.size() <= callee_results.size());