about summary refs log tree commit diff stats
path: root/035lookup.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-05-15 23:22:08 -0700
committerKartik Agaram <vc@akkartik.com>2018-05-15 23:22:08 -0700
commitc9cf358c0e34525efbb283f01dcb79816677f056 (patch)
tree66c6d2c12c5b9b86dcc5c12665c962d7ade28593 /035lookup.cc
parentecfa21dd5a107e8a8d05c36ca2a2c4a018e383a5 (diff)
downloadmu-c9cf358c0e34525efbb283f01dcb79816677f056.tar.gz
4246
Diffstat (limited to '035lookup.cc')
-rw-r--r--035lookup.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/035lookup.cc b/035lookup.cc
index 0f40f89e..7247b6a7 100644
--- a/035lookup.cc
+++ b/035lookup.cc
@@ -85,7 +85,6 @@ void lookup_memory_core(reagent& x, bool check_for_null) {
   if (x.value == 0) return;
   trace("mem") << "location " << x.value << " is " << no_scientific(get_or_insert(Memory, x.value)) << end();
   x.set_value(get_or_insert(Memory, x.value));
-  drop_from_type(x, "address");
   if (check_for_null && x.value == 0) {
     if (Current_routine) {
       raise << maybe(current_recipe_name()) << "tried to lookup 0 in '" << to_original_string(current_instruction()) << "'\n" << end();
@@ -95,6 +94,7 @@ void lookup_memory_core(reagent& x, bool check_for_null) {
       raise << "tried to lookup 0\n" << end();
     }
   }
+  drop_from_type(x, "address");
   drop_one_lookup(x);
 }