about summary refs log tree commit diff stats
path: root/069hash.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-08-17 00:14:38 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-08-17 00:14:38 -0700
commit067c8ed66c9bd4e9b4c936b54df293c665afa9bc (patch)
treef6a75f6d1e30b79f0eef11f52377d5b27d14b31f /069hash.cc
parente2e48483fcc3f31369134e3f20057ebcac72f6d7 (diff)
downloadmu-067c8ed66c9bd4e9b4c936b54df293c665afa9bc.tar.gz
3209
Diffstat (limited to '069hash.cc')
-rw-r--r--069hash.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/069hash.cc b/069hash.cc
index 457d1f9c..87cf666c 100644
--- a/069hash.cc
+++ b/069hash.cc
@@ -56,7 +56,7 @@ size_t hash_mu_scalar(size_t h, const reagent& r) {
 size_t hash_mu_address(size_t h, reagent& r) {
   if (r.value == 0) return 0;
   trace(9999, "mem") << "location " << r.value << " is " << no_scientific(get_or_insert(Memory, r.value)) << end();
-  r.value = get_or_insert(Memory, r.value);
+  r.set_value(get_or_insert(Memory, r.value));
   if (r.value != 0) {
     trace(9999, "mem") << "skipping refcount at " << r.value << end();
     r.set_value(r.value+1);  // skip refcount
@@ -81,7 +81,7 @@ size_t hash_mu_array(size_t h, const reagent& r) {
   elem.type = copy_array_element(r.type);
   for (int i=0, address = r.value+1; i < size; ++i, address += size_of(elem)) {
     reagent/*copy*/ tmp = elem;
-    tmp.value = address;
+    tmp.set_value(address);
     h = hash(h, tmp);
 //?     cerr << i << " (" << address << "): " << h << '\n';
   }