From 3c31b721c2bd5793430e4b2eba148d5ac46fabea Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 4 Apr 2017 19:37:42 -0700 Subject: 3812 Fix CI. --- 021check_instruction.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '021check_instruction.cc') 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; -- cgit 1.4.1-2-gfad0