diff options
Diffstat (limited to 'cpp/023call_reply')
-rw-r--r-- | cpp/023call_reply | 1 |
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()); |