about summary refs log tree commit diff stats
path: root/cpp/013run
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-03-26 16:40:56 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-03-26 16:40:56 -0700
commitc63e2811a14344801950d075ca89c3601e73f065 (patch)
treed8b103c69b69987086cc85f6fcab1815acddd681 /cpp/013run
parente853b94e93f0a525c857eff97b5ed3d7e9fecdac (diff)
downloadmu-c63e2811a14344801950d075ca89c3601e73f065.tar.gz
972
Diffstat (limited to 'cpp/013run')
-rw-r--r--cpp/013run3
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;
   }