From 67f969b971ef0c02cca02373c281d8c65b672232 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 28 Dec 2015 09:33:33 -0800 Subject: 2549 --- 021check_instruction.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '021check_instruction.cc') 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"); } -- cgit 1.4.1-2-gfad0