From c6034af30882b6a0a38bcf1fe546ed3dfd3bed04 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 25 Oct 2015 21:42:18 -0700 Subject: 2277 - reagents now have a tree of types --- 037recipe.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '037recipe.cc') diff --git a/037recipe.cc b/037recipe.cc index 2c5d7d81..23cfb5b2 100644 --- a/037recipe.cc +++ b/037recipe.cc @@ -67,9 +67,9 @@ case CALL: { :(code) bool is_mu_recipe(reagent r) { - if (r.types.empty()) return false; - if (r.types.at(0) == Type_ordinal["recipe"]) return true; - if (r.types.at(0) == Type_ordinal["recipe-ordinal"]) return true; + if (!r.type) return false; + if (r.type->value == Type_ordinal["recipe"]) return true; + if (r.type->value == Type_ordinal["recipe-ordinal"]) return true; // End is_mu_recipe Cases return false; } -- cgit 1.4.1-2-gfad0