Browse Source

* fix for bug #17325, an inc(i) was missing in aloop.

git-svn-id: trunk@15941 -
marco 15 years ago
parent
commit
7e51501541
1 changed files with 4 additions and 1 deletions
  1. 4 1
      rtl/inc/variants.pp

+ 4 - 1
rtl/inc/variants.pp

@@ -2804,7 +2804,10 @@ begin
   I:=Low(AVarTypes);
   Result:=False;
   While Not Result and (I<=High(AVarTypes)) do
-    Result:=((TVarData(V).vType and varTypeMask)=AVarTypes[I]);
+    begin
+      Result:=((TVarData(V).vType and varTypeMask)=AVarTypes[I]);
+      inc(i);
+    end;
 end;