about summary refs log tree commit diff stats
path: root/cpp/020array
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-03-21 17:53:20 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-03-21 17:53:20 -0700
commit7da71d032cc79b0dbcf962abdbdbb2732143a1d3 (patch)
treed6d1e4a85e45548eebb5add79d1b6a5c9fdc634c /cpp/020array
parentb9011f3481c7cb630bdfdf69feee24ddd540af4a (diff)
downloadmu-7da71d032cc79b0dbcf962abdbdbb2732143a1d3.tar.gz
966 - c++: starting on default-space
Diffstat (limited to 'cpp/020array')
-rw-r--r--cpp/020array4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/020array b/cpp/020array
index 457ed366..d5e0204c 100644
--- a/cpp/020array
+++ b/cpp/020array
@@ -33,7 +33,7 @@ if (t.is_array) {
   int base = r.value;
   if (Memory[base] == 0) return 0;
   reagent x(t.element[0]);
-  x.value = base+1;
+  x.set_value(base+1);
   return 1 + Memory[base]*size_of(x);
 }
 
@@ -58,7 +58,7 @@ case INDEX: {
   int src_type = Type[base_type].element[0];
   trace("run") << "its type is " << src_type;
   reagent tmp(src_type);
-  tmp.value = src;
+  tmp.set_value(src);
   vector<int> result(read_memory(tmp));
   trace("run") << "product 0 is " << result[0];
   write_memory(instructions[pc].products[0], result);