mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-04 22:47:38 +01:00
Fix previous commit 105382b8 by setting Temp to zero if maxi is zero
This commit is contained in:
parent
105382b8a1
commit
fb04659eb9
@ -169,7 +169,9 @@ unit widestr;
|
||||
if maxi>temp then
|
||||
maxi:=Temp;
|
||||
if maxi>0 then
|
||||
temp:=compareword(s1.data[0],s2.data[0],maxi);
|
||||
temp:=compareword(s1.data[0],s2.data[0],maxi)
|
||||
else
|
||||
temp:=0;
|
||||
if temp=0 then
|
||||
temp:=s1.len-s2.len;
|
||||
comparewidestrings:=temp;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user