diff options
Diffstat (limited to 'cpp/020array')
-rw-r--r-- | cpp/020array | 4 |
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); |