diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-10-12 21:01:07 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-10-12 21:09:47 -0700 |
commit | f8aa4b17efed4f56b0c023cf40eb6d6000be1748 (patch) | |
tree | c12c7398392ec7ee912b61024b3480f44250c567 /022arithmetic.cc | |
parent | 957ca9c955751d4454e7b4095f903eead9b678cc (diff) | |
download | mu-f8aa4b17efed4f56b0c023cf40eb6d6000be1748.tar.gz |
2270
Thanks Caleb Couch.
Diffstat (limited to '022arithmetic.cc')
-rw-r--r-- | 022arithmetic.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/022arithmetic.cc b/022arithmetic.cc index 16fab86c..e5de41ec 100644 --- a/022arithmetic.cc +++ b/022arithmetic.cc @@ -243,11 +243,11 @@ Recipe_ordinal["divide-with-remainder"] = DIVIDE_WITH_REMAINDER; :(before "End Primitive Recipe Checks") case DIVIDE_WITH_REMAINDER: { if (SIZE(inst.ingredients) != 2) { - raise_error << maybe(current_recipe_name()) << "'divide-with-remainder' requires exactly two ingredients, but got '" << current_instruction().to_string() << "'\n" << end(); + raise_error << maybe(Recipe[r].name) << "'divide-with-remainder' requires exactly two ingredients, but got '" << inst.to_string() << "'\n" << end(); break; } if (!is_mu_number(inst.ingredients.at(0)) || !is_mu_number(inst.ingredients.at(1))) { - raise_error << maybe(current_recipe_name()) << "'divide-with-remainder' requires number ingredients, but got '" << current_instruction().to_string() << "'\n" << end(); + raise_error << maybe(Recipe[r].name) << "'divide-with-remainder' requires number ingredients, but got '" << inst.to_string() << "'\n" << end(); break; } if (SIZE(inst.products) > 2) { |