From ba1fb981f6ce186e37c73e26ec79925bbaf991eb Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 4 Apr 2017 10:49:13 -0700 Subject: 3811 --- 021check_instruction.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '021check_instruction.cc') diff --git a/021check_instruction.cc b/021check_instruction.cc index 48fe3adf..8b34b55f 100644 --- a/021check_instruction.cc +++ b/021check_instruction.cc @@ -21,8 +21,8 @@ void check_instruction(const recipe_ordinal r) { switch (inst.operation) { // Primitive Recipe Checks case COPY: { - if (SIZE(inst.products) != SIZE(inst.ingredients)) { - raise << maybe(get(Recipe, r).name) << "ingredients and products should match in '" << inst.original_string << "'\n" << end(); + if (SIZE(inst.products) > SIZE(inst.ingredients)) { + 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) { -- cgit 1.4.1-2-gfad0