diff options
Diffstat (limited to '021check_instruction.cc')
-rw-r--r-- | 021check_instruction.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/021check_instruction.cc b/021check_instruction.cc index 089033dc..48fe3adf 100644 --- a/021check_instruction.cc +++ b/021check_instruction.cc @@ -126,6 +126,7 @@ bool types_match(const reagent& to, const reagent& from) { //: copy arguments for later layers bool types_strictly_match(reagent/*copy*/ to, reagent/*copy*/ from) { // End Preprocess types_strictly_match(reagent to, reagent from) + if (to.type == NULL) return false; // error if (is_literal(from) && to.type->value == get(Type_ordinal, "number")) return true; // to sidestep type-checking, use /unsafe in the source. // this will be highlighted in red inside vim. just for setting up some tests. |