about summary refs log tree commit diff stats
path: root/035lookup.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-05-25 13:26:11 -0700
committerKartik Agaram <vc@akkartik.com>2018-05-25 13:26:11 -0700
commit63139d901c0d4150e9d2861e8bbb8ed139d14b06 (patch)
tree314995eae9d68a09b793043761f5419975061ac9 /035lookup.cc
parent9531333e7ff6381e51e902d90e8ebc3e2bbb2208 (diff)
downloadmu-63139d901c0d4150e9d2861e8bbb8ed139d14b06.tar.gz
4249
Why do we have this silent null check? All tests pass without it.
Diffstat (limited to '035lookup.cc')
-rw-r--r--035lookup.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/035lookup.cc b/035lookup.cc
index 7247b6a7..650b8549 100644
--- a/035lookup.cc
+++ b/035lookup.cc
@@ -82,7 +82,6 @@ void lookup_memory(reagent& x) {
 }
 
 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));
   if (check_for_null && x.value == 0) {