about summary refs log tree commit diff stats
path: root/071recipe.cc
diff options
context:
space:
mode:
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();
     }
='author Kartik K. Agaram <vc@akkartik.com> 2016-03-13 20:26:47 -0700 committer Kartik K. Agaram <vc@akkartik.com> 2016-03-13 20:26:47 -0700 2773 - switch to 'int'' href='/akkartik/mu/commit/038location_array.cc?h=hlt&id=b24eb4766ad12eceaafa2ee0d620e070e21a3293'>b24eb476 ^
8d82da3c ^






6c96a437 ^
8d82da3c ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46