mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-09 20:59:49 +01:00
* improved last commit, better handling of boolean expressions
git-svn-id: trunk@48885 -
This commit is contained in:
parent
62bd0068b6
commit
f448603970
@ -1715,7 +1715,7 @@ implementation
|
||||
(left.resultdef.typ=orddef) and
|
||||
(left.nodetype=andn) and
|
||||
(right.nodetype=andn) and
|
||||
not(is_boolean(resultdef) or (cs_full_boolean_eval in current_settings.localswitches)) and
|
||||
not(is_boolean(resultdef) or not(might_have_sideeffects(self,[mhs_exceptions])) or not(doshortbooleval(self))) and
|
||||
{ this test is not needed but it speeds up the test and allows to bail out early }
|
||||
((taddnode(left).left.nodetype=notn) or (taddnode(left).right.nodetype=notn) or
|
||||
(taddnode(right).left.nodetype=notn) or (taddnode(right).right.nodetype=notn)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user