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-03-12 12:42:33 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-03-12 12:42:33 -0700
commit280eaa56ec45f87f02b5bd2938dd6e00a55743be (patch)
treed7606b4696ecc79e7cdc0dfcb296e2c4b3ac1338 /056shape_shifting_recipe.cc
parentb7717659a14748502a469490f572915c5ebd9c98 (diff)
downloadmu-280eaa56ec45f87f02b5bd2938dd6e00a55743be.tar.gz
3791
Simpler way to do commit 2929.
Diffstat (limited to '056shape_shifting_recipe.cc')
-rw-r--r--056shape_shifting_recipe.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/056shape_shifting_recipe.cc b/056shape_shifting_recipe.cc
index 457febb8..b6fa093c 100644
--- a/056shape_shifting_recipe.cc
+++ b/056shape_shifting_recipe.cc
@@ -88,12 +88,9 @@ if (contains_key(Recipe, inst.operation) && inst.operation >= MAX_PRIMITIVE_RECI
   return;
 }
 
-:(replace{} "bool types_strictly_match_except_literal_zero_against_address(const reagent& to, const reagent& from)")
-bool types_strictly_match_except_literal_zero_against_address(const reagent& to, const reagent& from) {
-  if (is_literal(from) && is_mu_address(to))
-    return from.name == "0" && !contains_type_ingredient_name(to);
-  return types_strictly_match(to, from);
-}
+:(replace{} "Match Literal Zero Against Address")
+if (is_literal(from) && is_mu_address(to))
+  return from.name == "0" && !contains_type_ingredient_name(to);
 
 :(code)
 // phase 3 of static dispatch