diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-02-21 14:40:50 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-02-21 14:40:50 -0800 |
commit | 35e535712d43031d97a5da5fcbc38fb946c0b9dd (patch) | |
tree | fe03d4c369a9cd726d221ae4d59c84f6aae5a5d3 /cpp/018address | |
parent | d672cdfc6c89b1306af9a967d551dbc016948965 (diff) | |
download | mu-35e535712d43031d97a5da5fcbc38fb946c0b9dd.tar.gz |
809
Diffstat (limited to 'cpp/018address')
-rw-r--r-- | cpp/018address | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/018address b/cpp/018address index 33f62fc9..bb173f94 100644 --- a/cpp/018address +++ b/cpp/018address @@ -20,7 +20,8 @@ vector<int> read_memory(reagent x) { } x = canonize(x); int base = to_int(x.name); - for (size_t offset = 0; offset < Type[x.types[0]].size; ++offset) { + size_t size = size_of(x.types[0]); + for (size_t offset = 0; offset < size; ++offset) { int val = Memory[base+offset]; trace("mem") << "location " << base+offset << " is " << val; result.push_back(val); |