* fixed copy&paste error of r45658

git-svn-id: trunk@45659 -
This commit is contained in:
florian 2020-06-19 19:55:14 +00:00
parent 2e36783d0e
commit a2303bd899

View File

@ -190,7 +190,7 @@ implementation
ncl, ncr: longint;
begin
{ calculate boolean AND and OR from left to right if it's short boolean evaluted }
if (p.nodetype in [orn,andn]) and is_boolean(p.left.resultdef) and is_boolean(p.left.resultdef) and doshortbooleval(p) then
if (p.nodetype in [orn,andn]) and is_boolean(p.left.resultdef) and is_boolean(p.right.resultdef) and doshortbooleval(p) then
begin
if nf_swapped in p.flags then
internalerror(200709253);