about summary refs log tree commit diff stats
path: root/cpp/044space_surround.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/044space_surround.cc
parentca12558ef7f0678cd7b4aee9e8dda459e61f1bc1 (diff)
downloadmu-6673e1fc4527147da453435203434394bbeaa513.tar.gz
1265
Diffstat (limited to 'cpp/044space_surround.cc')
-rw-r--r--cpp/044space_surround.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/044space_surround.cc b/cpp/044space_surround.cc
index bfc73eee..dfa6c9ef 100644
--- a/cpp/044space_surround.cc
+++ b/cpp/044space_surround.cc
@@ -25,23 +25,23 @@ recipe main [
 //: lifetime, surrounding allows managing shorter lifetimes inside a longer
 //: one.
 
-:(replace{} "int space_base(const reagent& x)")
-int space_base(const reagent& x) {
+:(replace{} "index_t space_base(const reagent& x)")
+index_t space_base(const reagent& x) {
   return space_base(x, space_index(x), Current_routine->calls.top().default_space);
 }
 
-int space_base(const reagent& x, int space_index, int base) {
+index_t space_base(const reagent& x, index_t space_index, index_t base) {
 //?   trace("foo") << "base of space " << space_index << '\n'; //? 1
   if (space_index == 0) {
 //?     trace("foo") << "base of space " << space_index << " is " << base << '\n'; //? 1
     return base;
   }
 //?   trace("foo") << "base of space " << space_index << " is " << Memory[base+1] << '\n'; //? 1
-  int result = space_base(x, space_index-1, Memory[base+1]);
+  index_t result = space_base(x, space_index-1, Memory[base+1]);
   return result;
 }
 
-int space_index(const reagent& x) {
+index_t space_index(const reagent& x) {
   for (index_t i = 0; i < x.properties.size(); ++i) {
     if (x.properties[i].first == "space")
       return to_int(x.properties[i].second[0]);