about summary refs log tree commit diff stats
path: root/cpp/019address
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/019address
parente853b94e93f0a525c857eff97b5ed3d7e9fecdac (diff)
downloadmu-c63e2811a14344801950d075ca89c3601e73f065.tar.gz
972
Diffstat (limited to 'cpp/019address')
-rw-r--r--cpp/019address3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/019address b/cpp/019address
index 6d697cb5..28fa4515 100644
--- a/cpp/019address
+++ b/cpp/019address
@@ -75,8 +75,9 @@ bool has_property(reagent x, string name) {
 
 reagent deref(reagent x) {
 //?   cout << "deref\n"; //? 1
+  static const int ADDRESS = Type_number["address"];
   reagent result("");
-  assert(x.types[0] == 2);  // address
+  assert(x.types[0] == ADDRESS);
 
   // compute value
   result.set_value(Memory[x.value]);