about summary refs log tree commit diff stats
path: root/071recipe.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-05-26 16:43:18 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-05-26 17:36:16 -0700
commit2b25071710656d7a755c2f66c99734cd7990d1ba (patch)
treef4e3a83d6397343c7c225a354f4f2c837aef8190 /071recipe.cc
parent5e320aa049bc1d5ad78eec23be0127f4a8d6ec3d (diff)
downloadmu-2b25071710656d7a755c2f66c99734cd7990d1ba.tar.gz
3877
Diffstat (limited to '071recipe.cc')
-rw-r--r--071recipe.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/071recipe.cc b/071recipe.cc
index f4256996..1a145ed6 100644
--- a/071recipe.cc
+++ b/071recipe.cc
@@ -169,14 +169,14 @@ void check_indirect_calls_against_header(const recipe_ordinal r) {
     if (is_indirect_call_with_ingredients(inst.operation)) {
       for (long int i = /*skip callee*/1;  i < min(SIZE(inst.ingredients), SIZE(callee_header.ingredients)+/*skip callee*/1);  ++i) {
         if (!types_coercible(callee_header.ingredients.at(i-/*skip callee*/1), inst.ingredients.at(i)))
-          raise << maybe(caller.name) << "ingredient " << i-/*skip callee*/1 << " has the wrong type at '" << inst.original_string << "'\n" << end();
+          raise << maybe(caller.name) << "ingredient " << i-/*skip callee*/1 << " has the wrong type at '" << to_original_string(inst) << "'\n" << end();
       }
     }
     if (is_indirect_call_with_products(inst.operation)) {
       for (long int i = 0;  i < min(SIZE(inst.products), SIZE(callee_header.products));  ++i) {
         if (is_dummy(inst.products.at(i))) continue;
         if (!types_coercible(callee_header.products.at(i), inst.products.at(i)))
-          raise << maybe(caller.name) << "product " << i << " has the wrong type at '" << inst.original_string << "'\n" << end();
+          raise << maybe(caller.name) << "product " << i << " has the wrong type at '" << to_original_string(inst) << "'\n" << end();
       }
     }
   }
@@ -356,7 +356,7 @@ check_for_recipe_literals(inst, get(Recipe, r));
 void check_for_recipe_literals(const instruction& inst, const recipe& caller) {
   for (int i = 0;  i < SIZE(inst.ingredients);  ++i) {
     if (is_mu_recipe(inst.ingredients.at(i))) {
-      raise << maybe(caller.name) << "missing type for '" << inst.ingredients.at(i).original_string << "' in '" << inst.original_string << "'\n" << end();
+      raise << maybe(caller.name) << "missing type for '" << inst.ingredients.at(i).original_string << "' in '" << to_original_string(inst) << "'\n" << end();
       if (is_present_in_ingredients(caller, inst.ingredients.at(i).name))
         raise << "  did you forget 'load-ingredients'?\n" << end();
     }