Browse Source

* fix TParameterLocations.GetLocation()

git-svn-id: trunk@35283 -
svenbarth 8 years ago
parent
commit
990b0e1657
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/objpas/typinfo.pp

+ 1 - 1
rtl/objpas/typinfo.pp

@@ -2399,7 +2399,7 @@ begin
   if aIndex >= Count then
     Result := Nil
   else
-    Result := PParameterLocation(@Count + SizeOf(Count) + SizeOf(TParameterLocation) * Count);
+    Result := PParameterLocation(@Count + SizeOf(Count) + SizeOf(TParameterLocation) * aIndex);
 end;
 
 { TProcedureParam }