diff options
Diffstat (limited to '031container.cc')
-rw-r--r-- | 031container.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/031container.cc b/031container.cc index dcaa15c0..3a525f80 100644 --- a/031container.cc +++ b/031container.cc @@ -183,10 +183,11 @@ case GET: { for (int i = 0; i < offset; ++i) src += size_of(element_type(base, i)); trace(9998, "run") << "address to copy is " << src << end(); - reagent elem = element_type(base, offset); - elem.set_value(src); - trace(9998, "run") << "its type is " << names_to_string(elem.type) << end(); - products.push_back(read_memory(elem)); + reagent element = element_type(base, offset); + element.set_value(src); + trace(9998, "run") << "its type is " << names_to_string(element.type) << end(); + // Read element + products.push_back(read_memory(element)); break; } |