about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-12-28 09:33:33 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-12-28 09:33:33 -0800
commit67f969b971ef0c02cca02373c281d8c65b672232 (patch)
tree285008226fb60de3c2e5a20587fb4dfade5998f3
parentbbe0801ab1e0b0859c3529ed33fde40b139addd6 (diff)
downloadmu-67f969b971ef0c02cca02373c281d8c65b672232.tar.gz
2549
-rw-r--r--021check_instruction.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/021check_instruction.cc b/021check_instruction.cc
index 400ef96d..717f1ca6 100644
--- a/021check_instruction.cc
+++ b/021check_instruction.cc
@@ -158,9 +158,11 @@ bool is_mu_address(reagent r) {
 
 bool is_mu_number(reagent r) {
   if (!r.type) return false;
-  if (is_literal(r))
+  if (is_literal(r)) {
+    if (!r.properties.at(0).second) return false;
     return r.properties.at(0).second->value == "literal-number"
         || r.properties.at(0).second->value == "literal";
+  }
   if (r.type->value == get(Type_ordinal, "character")) return true;  // permit arithmetic on unicode code points
   return r.type->value == get(Type_ordinal, "number");
 }