about summary refs log tree commit diff stats
path: root/050scenario.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 /050scenario.cc
parent455f03383651cb99776f5a4149abb7716abc63e8 (diff)
downloadmu-5798a11bf083ef3a0a2bbf2f55ddb6dfa1ee6b17.tar.gz
1343
Diffstat (limited to '050scenario.cc')
-rw-r--r--050scenario.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/050scenario.cc b/050scenario.cc
index af97b34a..6344c9a1 100644
--- a/050scenario.cc
+++ b/050scenario.cc
@@ -200,7 +200,7 @@ void check_memory(const string& s) {
       check_type(lhs, in);
       continue;
     }
-    int address = to_int(lhs);
+    int address = to_number(lhs);
     skip_whitespace_and_comments(in);
     string _assign;  in >> _assign;  assert(_assign == "<-");
     skip_whitespace_and_comments(in);
@@ -223,7 +223,7 @@ void check_memory(const string& s) {
 void check_type(const string& lhs, istream& in) {
   reagent x(lhs);
   if (x.properties.at(0).second.at(0) == "string") {
-    x.set_value(to_int(x.name));
+    x.set_value(to_number(x.name));
     skip_whitespace_and_comments(in);
     string _assign = next_word(in);
     assert(_assign == "<-");