diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-11-27 21:38:09 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-11-27 21:38:09 -0800 |
commit | fca48e92d4e51eb7e5b1a811b65e5d69fadeb713 (patch) | |
tree | 41bdb3252b20d563670e5db848cedc5c3be689cb /021check_instruction.cc | |
parent | 7f193a0e006c44604918b54c853bd49508dbe8fd (diff) | |
download | mu-fca48e92d4e51eb7e5b1a811b65e5d69fadeb713.tar.gz |
2483 - to-text can now handle lists
'append' also implicitly calls 'to-text' unless there's a better variant.
Diffstat (limited to '021check_instruction.cc')
-rw-r--r-- | 021check_instruction.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/021check_instruction.cc b/021check_instruction.cc index 930eacde..76d3ddb2 100644 --- a/021check_instruction.cc +++ b/021check_instruction.cc @@ -124,8 +124,8 @@ bool types_match(type_tree* lhs, type_tree* rhs) { if (lhs->value == get(Type_ordinal, "address")) return false; return size_of(rhs) == size_of(lhs); } - if (lhs->value == get(Type_ordinal, "character") && rhs->value == get(Type_ordinal, "number")) return true; - if (lhs->value == get(Type_ordinal, "number") && rhs->value == get(Type_ordinal, "character")) return true; +//? if (lhs->value == get(Type_ordinal, "character") && rhs->value == get(Type_ordinal, "number")) return true; +//? if (lhs->value == get(Type_ordinal, "number") && rhs->value == get(Type_ordinal, "character")) return true; if (lhs->value != rhs->value) return false; return types_match(lhs->left, rhs->left) && types_match(lhs->right, rhs->right); } |