* fix for 4264

git-svn-id: trunk@824 -
This commit is contained in:
marco 2005-08-08 09:02:32 +00:00
parent 4de8e19a68
commit 53dad79aaf

View File

@ -745,8 +745,8 @@ function CompareDOMStrings(const s1, s2: DOMPChar; l1, l2: integer): integer;
var i: integer;
begin
Result:=l1-l2;
i:=1;
while (i<=l1) and (Result=0) do begin
i:=0;
while (i<l1) and (Result=0) do begin
Result:=ord(s1[i])-ord(s2[i]);
inc(i);
end;