mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-27 08:13:50 +02:00
* Use Int32 for index
This commit is contained in:
parent
429d04089e
commit
b530804eb6
@ -2324,7 +2324,7 @@ function TJSArray._GetNativeInts(Index: NativeInt): NativeInt;
|
||||
|
||||
var
|
||||
V : TJOB_JSValue;
|
||||
I64 : Int64;
|
||||
I : Integer;
|
||||
|
||||
begin
|
||||
V:=Elements[Index];
|
||||
@ -2334,9 +2334,9 @@ begin
|
||||
Exit(Round(TJOB_Double(V).Value));
|
||||
if V is TJOB_String then
|
||||
begin
|
||||
if TryStrToInt64(TJOB_STRING(V).Value,I64) then
|
||||
if TryStrToInt(TJOB_STRING(V).Value,I) then
|
||||
begin
|
||||
Result:=I64;
|
||||
Result:=I;
|
||||
Exit
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user