diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-05-05 17:20:11 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-05-05 17:34:18 -0700 |
commit | 6673e1fc4527147da453435203434394bbeaa513 (patch) | |
tree | 4d2fa9f732c2b229939bd450511b4c329085d036 /cpp/037call_reply.cc | |
parent | ca12558ef7f0678cd7b4aee9e8dda459e61f1bc1 (diff) | |
download | mu-6673e1fc4527147da453435203434394bbeaa513.tar.gz |
1265
Diffstat (limited to 'cpp/037call_reply.cc')
-rw-r--r-- | cpp/037call_reply.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/037call_reply.cc b/cpp/037call_reply.cc index 39fb1606..697c6b84 100644 --- a/cpp/037call_reply.cc +++ b/cpp/037call_reply.cc @@ -21,7 +21,7 @@ REPLY, Recipe_number["reply"] = REPLY; :(before "End Primitive Recipe Implementations") case REPLY: { - vector<vector<int> > callee_results; + vector<vector<long long int> > callee_results; for (index_t i = 0; i < current_instruction().ingredients.size(); ++i) { callee_results.push_back(read_memory(current_instruction().ingredients[i])); } @@ -37,7 +37,7 @@ case REPLY: { if (has_property(reply_inst.ingredients[i], "same-as-ingredient")) { vector<string> tmp = property(reply_inst.ingredients[i], "same-as-ingredient"); assert(tmp.size() == 1); - int ingredient_index = to_int(tmp[0]); + long long int ingredient_index = to_int(tmp[0]); if (caller_instruction.products[i].value != caller_instruction.ingredients[ingredient_index].value) raise << "'same-as-ingredient' result " << caller_instruction.products[i].value << " must be location " << caller_instruction.ingredients[ingredient_index].value << '\n'; } @@ -78,7 +78,7 @@ recipe test1 [ +warn: 'same-as-ingredient' result 2 must be location 1 :(code) -string to_string(const vector<int>& in) { +string to_string(const vector<long long int>& in) { if (in.empty()) return "[]"; ostringstream out; if (in.size() == 1) { |