diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-05-12 19:55:21 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-05-12 20:14:49 -0700 |
commit | 1fb0cf9ef9e616163039fd4df6584c6c2ba68d23 (patch) | |
tree | cdffcc21108054c20585d74b4c57634e929c6c4c /034address.cc | |
parent | cdf2822743b3beeb37ebc3deea8e08b6130698c5 (diff) | |
download | mu-1fb0cf9ef9e616163039fd4df6584c6c2ba68d23.tar.gz |
4243
Diffstat (limited to '034address.cc')
-rw-r--r-- | 034address.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/034address.cc b/034address.cc index 9b74afdf..bce51b2e 100644 --- a/034address.cc +++ b/034address.cc @@ -92,12 +92,12 @@ case NEW: { bool product_of_new_is_valid(const instruction& inst) { reagent/*copy*/ product = inst.products.at(0); // Update NEW product in Check - if (!product.type || product.type->atom || product.type->left->value != get(Type_ordinal, "address")) + if (!product.type || product.type->atom || product.type->left->value != Address_type_ordinal) return false; drop_from_type(product, "address"); if (SIZE(inst.ingredients) > 1) { // array allocation - if (!product.type || product.type->atom || product.type->left->value != get(Type_ordinal, "array")) + if (!product.type || product.type->atom || product.type->left->value != Array_type_ordinal) return false; drop_from_type(product, "array"); } |