about summary refs log tree commit diff stats
path: root/cpp/031address.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-05 17:20:11 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-05 17:34:18 -0700
commit6673e1fc4527147da453435203434394bbeaa513 (patch)
tree4d2fa9f732c2b229939bd450511b4c329085d036 /cpp/031address.cc
parentca12558ef7f0678cd7b4aee9e8dda459e61f1bc1 (diff)
downloadmu-6673e1fc4527147da453435203434394bbeaa513.tar.gz
1265
Diffstat (limited to 'cpp/031address.cc')
-rw-r--r--cpp/031address.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/031address.cc b/cpp/031address.cc
index ddb9ba64..1c830c74 100644
--- a/cpp/031address.cc
+++ b/cpp/031address.cc
@@ -13,7 +13,7 @@ recipe main [
 +mem: location 2 is 34
 +mem: storing 34 in location 3
 
-:(before "int base = x.value" following "vector<int> read_memory(reagent x)")
+:(before "index_t base = x.value" following "vector<long long int> read_memory(reagent x)")
 x = canonize(x);
 
 //: similarly, write to addresses pointing at other locations using the
@@ -27,7 +27,7 @@ recipe main [
 +mem: location 1 is 2
 +mem: storing 34 in location 2
 
-:(before "int base = x.value" following "void write_memory(reagent x, vector<int> data)")
+:(before "index_t base = x.value" following "void write_memory(reagent x, vector<long long int> data)")
 x = canonize(x);
 
 :(code)
@@ -55,8 +55,8 @@ reagent deref(reagent x) {
   copy(++x.types.begin(), x.types.end(), inserter(result.types, result.types.begin()));
 
   // drop-one 'deref'
-  int i = 0;
-  int len = x.properties.size();
+  index_t i = 0;
+  size_t len = x.properties.size();
   for (i = 0; i < len; ++i) {
     if (x.properties[i].first == "deref") break;
     result.properties.push_back(x.properties[i]);