about summary refs log tree commit diff stats
path: root/099hardware_checks.cc
diff options
context:
space:
mode:
Diffstat (limited to '099hardware_checks.cc')
-rw-r--r--099hardware_checks.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/099hardware_checks.cc b/099hardware_checks.cc
index 42ad271f..0a6a1ebd 100644
--- a/099hardware_checks.cc
+++ b/099hardware_checks.cc
@@ -38,7 +38,7 @@ void check_for_misuse_of_real_hardware(const recipe_ordinal r) {
   trace(9991, "transform") << "--- check if recipe " << caller.name << " has any dependency-injection mistakes" << end();
   for (int index = 0;  index < SIZE(caller.steps);  ++index) {
     const instruction& inst = caller.steps.at(index);
-    if (inst.operation < MAX_PRIMITIVE_RECIPES) continue;
+    if (is_primitive(inst.operation)) continue;
     for (int i = 0;  i < SIZE(inst.ingredients);  ++i) {
       const reagent& ing = inst.ingredients.at(i);
       if (!is_literal(ing) || ing.name != "0") continue;