Ver Fonte

* Fix failing testcase

git-svn-id: trunk@33305 -
michael há 9 anos atrás
pai
commit
2af6b236b7
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      packages/rtl-objpas/src/inc/strutils.pp

+ 2 - 2
packages/rtl-objpas/src/inc/strutils.pp

@@ -2591,7 +2591,7 @@ begin
     end;
     end;
 end;
 end;
 
 
-Function isMatch(level : Integer; inputstr,wilds : string; CWild, CinputWord: integer;MaxInputword,maxwilds : word; Out EOS : Boolean) : Boolean;
+Function isMatch(level : integer;inputstr,wilds : string; CWild, CinputWord: integer;MaxInputword,maxwilds : word; Out EOS : Boolean) : Boolean;
 
 
 begin
 begin
   EOS:=False;
   EOS:=False;
@@ -2636,7 +2636,7 @@ begin
     Exit;
     Exit;
   until (CinputWord > MaxinputWord) or (CWild > MaxWilds);
   until (CinputWord > MaxinputWord) or (CWild > MaxWilds);
   { no completed evaluation, we need to check what happened }
   { no completed evaluation, we need to check what happened }
-  if (CinputWord < MaxinputWord) or (CWild < MaxWilds) then
+  if (CinputWord <= MaxinputWord) or (CWild < MaxWilds) then
     Result:=false
     Result:=false
   else if (CWild>Maxwilds) then
   else if (CWild>Maxwilds) then
     EOS:=False
     EOS:=False