diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-10-25 21:42:18 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-10-25 21:42:18 -0700 |
commit | c6034af30882b6a0a38bcf1fe546ed3dfd3bed04 (patch) | |
tree | d63634d44163ad21ddbbabf9a9386adf697a7aa2 /037recipe.cc | |
parent | f5dfb7f7374c7e78575d0c205db391814be1b434 (diff) | |
download | mu-c6034af30882b6a0a38bcf1fe546ed3dfd3bed04.tar.gz |
2277 - reagents now have a tree of types
Diffstat (limited to '037recipe.cc')
-rw-r--r-- | 037recipe.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |