about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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);
w work with names' href='/akkartik/mu/commit/047global.cc?h=hlt&id=dfc6e268c7685e7ea5f5cdb434e62e63d2d7c915'>dfc6e268 ^
35064671 ^
385d3080 ^







35064671 ^
385d3080 ^


dfc6e268 ^





bc643692 ^


dfc6e268 ^








385d3080 ^



dfc6e268 ^
385d3080 ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75