about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-03-18 00:10:24 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-03-18 00:10:24 -0700
commitfb6b8a37187062fffe84c887b4771acdcf15212f (patch)
tree2ac3da82fc4b12715547c0d7ae7ca91d9771d164
parenta6b26e669c5b589ada71c19bc9d360b536c47aef (diff)
downloadmu-fb6b8a37187062fffe84c887b4771acdcf15212f.tar.gz
953 - bugfix in intermediate layer
-rw-r--r--cpp/018record6
1 files changed, 2 insertions, 4 deletions
diff --git a/cpp/018record b/cpp/018record
index b6ca40dc..3a9b3c37 100644
--- a/cpp/018record
+++ b/cpp/018record
@@ -49,10 +49,8 @@ case GET: {
   assert(Type[base_type].elements.size() > offset);
   int src_type = Type[base_type].elements[offset][0];
   trace("run") << "its type is " << src_type;
-  ostringstream s;
-  s << src;
-  reagent tmp(s.str());
-  tmp.types.push_back(src_type);
+  reagent tmp(src_type);
+  tmp.value = src;
   vector<int> result(read_memory(tmp));
   trace("run") << "product 0 is " << result[0];
   write_memory(instructions[pc].products[0], result);