Browse Source

* fix for Mantis #32476: use the correct string to check i2

git-svn-id: trunk@37361 -
svenbarth 7 years ago
parent
commit
5c447cba50
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/cutils.pas

+ 1 - 1
compiler/cutils.pas

@@ -1243,7 +1243,7 @@ implementation
             exit(res);
             exit(res);
           { if one of the two is at the end while the other isn't, add a '.0' }
           { if one of the two is at the end while the other isn't, add a '.0' }
           if (i1>length(s1)) and
           if (i1>length(s1)) and
-             (i2<=length(s1)) then
+             (i2<=length(s2)) then
             s1:=s1+'.0'
             s1:=s1+'.0'
           else if i2>length(s2) then
           else if i2>length(s2) then
             s2:=s2+'.0';
             s2:=s2+'.0';