From 7da71d032cc79b0dbcf962abdbdbb2732143a1d3 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 21 Mar 2015 17:53:20 -0700 Subject: 966 - c++: starting on default-space --- cpp/020array | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/020array') 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 result(read_memory(tmp)); trace("run") << "product 0 is " << result[0]; write_memory(instructions[pc].products[0], result); -- cgit 1.4.1-2-gfad0