about summary refs log tree commit diff stats
path: root/035lookup.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-05-12 19:55:21 -0700
committerKartik Agaram <vc@akkartik.com>2018-05-12 20:14:49 -0700
commit1fb0cf9ef9e616163039fd4df6584c6c2ba68d23 (patch)
treecdffcc21108054c20585d74b4c57634e929c6c4c /035lookup.cc
parentcdf2822743b3beeb37ebc3deea8e08b6130698c5 (diff)
downloadmu-1fb0cf9ef9e616163039fd4df6584c6c2ba68d23.tar.gz
4243
Diffstat (limited to '035lookup.cc')
-rw-r--r--035lookup.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/035lookup.cc b/035lookup.cc
index 557dd936..0f40f89e 100644
--- a/035lookup.cc
+++ b/035lookup.cc
@@ -67,7 +67,7 @@ void canonize(reagent& x) {
 }
 
 void lookup_memory(reagent& x) {
-  if (!x.type || x.type->atom || x.type->left->value != get(Type_ordinal, "address")) {
+  if (!x.type || x.type->atom || x.type->left->value != Address_type_ordinal) {
     raise << maybe(current_recipe_name()) << "tried to lookup '" << x.original_string << "' but it isn't an address\n" << end();
     dump_callstack();
     return;
@@ -137,7 +137,7 @@ assert(!has_property(element, "lookup"));
 :(code)
 bool canonize_type(reagent& r) {
   while (has_property(r, "lookup")) {
-    if (!r.type || r.type->atom || !r.type->left || !r.type->left->atom || r.type->left->value != get(Type_ordinal, "address")) {
+    if (!r.type || r.type->atom || !r.type->left || !r.type->left->atom || r.type->left->value != Address_type_ordinal) {
       raise << "cannot perform lookup on '" << r.name << "' because it has non-address type " << to_string(r.type) << '\n' << end();
       return false;
     }