diff --git a/compiler/nadd.pas b/compiler/nadd.pas index 6dbc8b32fb..cd14a42ef0 100644 --- a/compiler/nadd.pas +++ b/compiler/nadd.pas @@ -1995,6 +1995,10 @@ implementation begin if not(nodetype in [equaln,unequaln]) then CGMessage3(type_e_operator_not_supported_for_types,node2opstr(nodetype),ld.typename,rd.typename); + if lt=niln then + inserttypeconv_explicit(left,right.resultdef) + else + inserttypeconv_explicit(right,left.resultdef) end {$ifdef SUPPORT_MMX}