From 598f1b5362eb799e40836ceeb5452c9ba937fd6c Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 7 Feb 2017 00:22:08 -0800 Subject: 3746 --- html/035lookup.cc.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'html/035lookup.cc.html') diff --git a/html/035lookup.cc.html b/html/035lookup.cc.html index ce6d0ed6..c52b00d4 100644 --- a/html/035lookup.cc.html +++ b/html/035lookup.cc.html @@ -163,11 +163,11 @@ if ('onhashchange' in window) { 100 void lookup_memory_core(reagent& x, bool check_for_null) { 101 if (x.value == 0) return; 102 trace(9999, "mem") << "location " << x.value << " is " << no_scientific(get_or_insert(Memory, x.value)) << end(); -103 x.set_value(get_or_insert(Memory, x.value)); +103 x.set_value(get_or_insert(Memory, x.value)); 104 drop_from_type(x, "address"); 105 if (x.value) { 106 trace(9999, "mem") << "skipping refcount at " << x.value << end(); -107 x.set_value(x.value+1); // skip refcount +107 x.set_value(x.value+1); // skip refcount 108 } 109 else if (check_for_null) { 110 if (Current_routine) @@ -180,7 +180,7 @@ if ('onhashchange' in window) { 117 118 void test_lookup_address_skips_refcount() { 119 reagent x("*x:address:num"); -120 x.set_value(34); // unsafe +120 x.set_value(34); // unsafe 121 put(Memory, 34, 1000); 122 lookup_memory(x); 123 CHECK_TRACE_CONTENTS("mem: skipping refcount at 1000"); @@ -190,7 +190,7 @@ if ('onhashchange' in window) { 127 void test_lookup_zero_address_does_not_skip_refcount() { 128 Hide_errors = true; 129 reagent x("*x:address:num"); -130 x.set_value(34); // unsafe +130 x.set_value(34); // unsafe 131 put(Memory, 34, 0); 132 lookup_memory(x); 133 CHECK_TRACE_DOESNT_CONTAIN("mem: skipping refcount at 0"); -- cgit 1.4.1-2-gfad0