diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-05-25 10:32:51 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-05-25 10:32:51 -0700 |
commit | 67a180e330687d6252b22b6211e8da3ce608add0 (patch) | |
tree | 819abbfacd74639d0bae8d81a3ce580159d6037d /023boolean.cc | |
parent | 6b59e98683a0311794cf8bb6f59766bb85c33d8f (diff) | |
download | mu-67a180e330687d6252b22b6211e8da3ce608add0.tar.gz |
3007 - warn on unused result in 'not'
Diffstat (limited to '023boolean.cc')
-rw-r--r-- | 023boolean.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/023boolean.cc b/023boolean.cc index 4959796a..833595fa 100644 --- a/023boolean.cc +++ b/023boolean.cc @@ -122,8 +122,8 @@ NOT, put(Recipe_ordinal, "not", NOT); :(before "End Primitive Recipe Checks") case NOT: { - if (SIZE(inst.products) > SIZE(inst.ingredients)) { - raise << maybe(get(Recipe, r).name) << "'not' cannot have fewer ingredients than products in '" << to_original_string(inst) << "'\n" << end(); + if (SIZE(inst.products) != SIZE(inst.ingredients)) { + raise << "ingredients and products should match in '" << to_original_string(inst) << "'\n" << end(); break; } for (int i = 0; i < SIZE(inst.ingredients); ++i) { |