about summary refs log tree commit diff stats
path: root/036refcount.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-10-25 12:12:02 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-10-25 12:12:02 -0700
commit2ab491c23f044b620d4b5a75ed2f3c00c1de72e1 (patch)
tree11ebeb893677d5d829a8503b2871646a5be59d0f /036refcount.cc
parentc3d39e3797a5ea1d0a2a53e9e41c64a5411fcf27 (diff)
downloadmu-2ab491c23f044b620d4b5a75ed2f3c00c1de72e1.tar.gz
3592 - warn on *any* lookup of address 0
Thanks Caleb Couch for running into this with $print.
Diffstat (limited to '036refcount.cc')
-rw-r--r--036refcount.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/036refcount.cc b/036refcount.cc
index 688a4682..009defa1 100644
--- a/036refcount.cc
+++ b/036refcount.cc
@@ -81,7 +81,7 @@ void decrement_refcount(int old_address, const type_tree* payload_type, int payl
 
 int payload_size(reagent/*copy*/ x) {
   x.properties.push_back(pair<string, string_tree*>("lookup", NULL));
-  lookup_memory_core(x);
+  lookup_memory_core(x, /*check for nulls*/false);
   return size_of(x) + /*refcount*/1;
 }