about summary refs log tree commit diff stats
path: root/037call_reply.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-11 10:04:16 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-11 10:04:16 -0700
commit5798a11bf083ef3a0a2bbf2f55ddb6dfa1ee6b17 (patch)
tree9fe1dc9e9dc904e93ab6984acb6ed3d6ca55c407 /037call_reply.cc
parent455f03383651cb99776f5a4149abb7716abc63e8 (diff)
downloadmu-5798a11bf083ef3a0a2bbf2f55ddb6dfa1ee6b17.tar.gz
1343
Diffstat (limited to '037call_reply.cc')
-rw-r--r--037call_reply.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/037call_reply.cc b/037call_reply.cc
index e44fe205..3de6d588 100644
--- a/037call_reply.cc
+++ b/037call_reply.cc
@@ -33,7 +33,7 @@ case REPLY: {
     if (has_property(reply_inst.ingredients.at(i), "same-as-ingredient")) {
       vector<string> tmp = property(reply_inst.ingredients.at(i), "same-as-ingredient");
       assert(tmp.size() == 1);
-      long long int ingredient_index = to_int(tmp.at(0));
+      long long int ingredient_index = to_number(tmp.at(0));
       if (caller_instruction.products.at(i).value != caller_instruction.ingredients.at(ingredient_index).value)
         raise << "'same-as-ingredient' result " << caller_instruction.products.at(i).value << " must be location " << caller_instruction.ingredients.at(ingredient_index).value << '\n';
     }