about summary refs log tree commit diff stats
path: root/021check_instruction.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-04-04 19:37:42 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-04-04 19:37:55 -0700
commit3c31b721c2bd5793430e4b2eba148d5ac46fabea (patch)
tree1d3888c07cc8e428ffa211d352c5c0e9957477a6 /021check_instruction.cc
parentba1fb981f6ce186e37c73e26ec79925bbaf991eb (diff)
downloadmu-3c31b721c2bd5793430e4b2eba148d5ac46fabea.tar.gz
3812
Fix CI.
Diffstat (limited to '021check_instruction.cc')
-rw-r--r--021check_instruction.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/021check_instruction.cc b/021check_instruction.cc
index 8b34b55f..90f24926 100644
--- a/021check_instruction.cc
+++ b/021check_instruction.cc
@@ -25,7 +25,7 @@ void check_instruction(const recipe_ordinal r) {
           raise << maybe(get(Recipe, r).name) << "too many products in '" << inst.original_string << "'\n" << end();
           break;
         }
-        for (int i = 0;  i < SIZE(inst.ingredients);  ++i) {
+        for (int i = 0;  i < SIZE(inst.products);  ++i) {
           if (!types_coercible(inst.products.at(i), inst.ingredients.at(i))) {
             raise << maybe(get(Recipe, r).name) << "can't copy '" << inst.ingredients.at(i).original_string << "' to '" << inst.products.at(i).original_string << "'; types don't match\n" << end();
             goto finish_checking_instruction;
@@ -46,9 +46,9 @@ void check_instruction(const recipe_ordinal r) {
 :(scenario copy_checks_reagent_count)
 % Hide_errors = true;
 def main [
-  1:num <- copy 34, 35
+  1:num, 2:num <- copy 34
 ]
-+error: main: ingredients and products should match in '1:num <- copy 34, 35'
++error: main: too many products in '1:num, 2:num <- copy 34'
 
 :(scenario write_scalar_to_array_disallowed)
 % Hide_errors = true;