From c63e2811a14344801950d075ca89c3601e73f065 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 26 Mar 2015 16:40:56 -0700 Subject: 972 --- cpp/019address | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp/019address') 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]); -- cgit 1.4.1-2-gfad0