about summary refs log tree commit diff stats
path: root/056shape_shifting_recipe.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-10-18 20:08:05 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-10-18 20:08:05 -0700
commit636837e7d9733206cba3a1947ec46d4f003b93ce (patch)
treefcb906988cf3fa872253bfad1e7daa23e9567c23 /056shape_shifting_recipe.cc
parent292ccba1bbdc8c2ec6cfacefa15f19c8d215b58c (diff)
downloadmu-636837e7d9733206cba3a1947ec46d4f003b93ce.tar.gz
4086 - back to cleaning up delimited continuations
Diffstat (limited to '056shape_shifting_recipe.cc')
-rw-r--r--056shape_shifting_recipe.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/056shape_shifting_recipe.cc b/056shape_shifting_recipe.cc
index 7f74136d..917fce5c 100644
--- a/056shape_shifting_recipe.cc
+++ b/056shape_shifting_recipe.cc
@@ -75,7 +75,7 @@ skip_shape_shifting_variants:;
 //: recipes can be called
 
 :(before "End Instruction Operation Checks")
-if (contains_key(Recipe, inst.operation) && inst.operation >= MAX_PRIMITIVE_RECIPES
+if (contains_key(Recipe, inst.operation) && !is_primitive(inst.operation)
     && any_type_ingredient_in_header(inst.operation)) {
   raise << maybe(caller.name) << "instruction '" << inst.name << "' has no valid specialization\n" << end();
   return;