diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-05-16 21:24:21 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-05-16 21:24:21 -0700 |
commit | 0f125d5ff163fafbf5531ce9f54f1021f0277b10 (patch) | |
tree | d4164b01d145a319fbd6fdb8ae9b58ea1042a607 /050scenario.cc | |
parent | c3779a7849804756c22912f8cfb6178863d82fb9 (diff) | |
download | mu-0f125d5ff163fafbf5531ce9f54f1021f0277b10.tar.gz |
1387
Diffstat (limited to '050scenario.cc')
-rw-r--r-- | 050scenario.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/050scenario.cc b/050scenario.cc index 15981b06..b43aea57 100644 --- a/050scenario.cc +++ b/050scenario.cc @@ -207,11 +207,11 @@ void check_memory(const string& s) { skip_whitespace_and_comments(in); if (in.eof()) break; string lhs = next_word(in); - if (!is_number(lhs)) { + if (!is_integer(lhs)) { check_type(lhs, in); continue; } - int address = to_number(lhs); + int address = to_integer(lhs); skip_whitespace_and_comments(in); string _assign; in >> _assign; assert(_assign == "<-"); skip_whitespace_and_comments(in); @@ -234,7 +234,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_number(x.name)); + x.set_value(to_integer(x.name)); skip_whitespace_and_comments(in); string _assign = next_word(in); assert(_assign == "<-"); |