about summary refs log tree commit diff stats
path: root/045closure_name.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-11 10:04:16 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-11 10:04:16 -0700
commit5798a11bf083ef3a0a2bbf2f55ddb6dfa1ee6b17 (patch)
tree9fe1dc9e9dc904e93ab6984acb6ed3d6ca55c407 /045closure_name.cc
parent455f03383651cb99776f5a4149abb7716abc63e8 (diff)
downloadmu-5798a11bf083ef3a0a2bbf2f55ddb6dfa1ee6b17.tar.gz
1343
Diffstat (limited to '045closure_name.cc')
-rw-r--r--045closure_name.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/045closure_name.cc b/045closure_name.cc
index 83fbeede..4cb9411f 100644
--- a/045closure_name.cc
+++ b/045closure_name.cc
@@ -84,7 +84,7 @@ index_t lookup_name(const reagent& x, const recipe_number default_recipe) {
   }
   vector<string> p = property(x, "space");
   if (p.size() != 1) raise << "/space property should have exactly one (non-negative integer) value\n";
-  int n = to_int(p.at(0));
+  int n = to_number(p.at(0));
   assert(n >= 0);
   recipe_number surrounding_recipe = lookup_surrounding_recipe(default_recipe, n);
   set<recipe_number> done;