diff options
Diffstat (limited to 'cpp/013run')
-rw-r--r-- | cpp/013run | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/013run b/cpp/013run index fa7e3468..5173f6f3 100644 --- a/cpp/013run +++ b/cpp/013run @@ -118,8 +118,9 @@ recipes_added_by_test.clear(); //: beware: overridden in later layers vector<int> read_memory(reagent x) { //? cout << "read_memory: " << x.to_string() << '\n'; //? 1 + static const int LITERAL = Type_number["literal"]; vector<int> result; - if (x.types[0] == 0) { // literal + if (x.types[0] == LITERAL) { result.push_back(x.value); return result; } |