diff --git a/compiler/nadd.pas b/compiler/nadd.pas index 1380d3e0ff..000eb90c36 100644 --- a/compiler/nadd.pas +++ b/compiler/nadd.pas @@ -2225,7 +2225,11 @@ implementation This is compatible with the code below for other unsigned types (PFV) } if is_signed(left.resultdef) or is_signed(right.resultdef) or - (nodetype=subn) then + ((nodetype=subn) +{$if defined(cpu8bitalu) or defined(cpu16bitalu)} + and not (m_tp7 in current_settings.modeswitches) +{$endif} + ) then begin if nodetype<>subn then CGMessage(type_h_mixed_signed_unsigned);