mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-19 17:29:20 +02:00
* Do not insert a widestring <-> ansistring conversion node when checking for (un)equal empty string.
This commit is contained in:
parent
4e959de2c7
commit
3eee2d8ff3
@ -2837,9 +2837,11 @@ implementation
|
|||||||
st_unicodestring :
|
st_unicodestring :
|
||||||
begin
|
begin
|
||||||
if not(is_unicodestring(rd)) then
|
if not(is_unicodestring(rd)) then
|
||||||
inserttypeconv(right,cunicodestringtype);
|
if not ((ld.size=0) and (nodetype in [equaln,unequaln])) then
|
||||||
|
inserttypeconv(right,cunicodestringtype);
|
||||||
if not(is_unicodestring(ld)) then
|
if not(is_unicodestring(ld)) then
|
||||||
inserttypeconv(left,cunicodestringtype);
|
if not ((rd.size=0) and (nodetype in [equaln,unequaln])) then
|
||||||
|
inserttypeconv(left,cunicodestringtype);
|
||||||
end;
|
end;
|
||||||
st_ansistring :
|
st_ansistring :
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user