mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-11 10:49:30 +02:00
* empty widestrings can also be optimized to the constant '0'
This commit is contained in:
parent
f15dbd7bf0
commit
d45517d97d
@ -207,7 +207,8 @@ implementation
|
||||
i,mylength : longint;
|
||||
begin
|
||||
{ for empty ansistrings we could return a constant 0 }
|
||||
if is_ansistring(resulttype.def) and
|
||||
if (is_ansistring(resulttype.def) or
|
||||
is_widestring(resulttype.def)) and
|
||||
(len=0) then
|
||||
begin
|
||||
location.loc:=LOC_MEM;
|
||||
@ -516,7 +517,10 @@ begin
|
||||
end.
|
||||
{
|
||||
$Log$
|
||||
Revision 1.2 2001-10-20 19:28:37 peter
|
||||
Revision 1.3 2001-12-31 09:52:02 jonas
|
||||
* empty widestrings can also be optimized to the constant '0'
|
||||
|
||||
Revision 1.2 2001/10/20 19:28:37 peter
|
||||
* interface 2 guid support
|
||||
* guid constants support
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user