Skip to content

Commit 3c11429

Browse files
committed
Fixed Integer/NativeInt issue
1 parent a04e995 commit 3c11429

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Demos/Demo28/Unit1.pas

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ TPyStringList = class(TPyObject)
2525
function Iter : PPyObject; override;
2626

2727
// Sequence services
28-
function SqLength : Integer; override;
29-
function SqItem( idx : Integer ) : PPyObject; override;
30-
function SqAssItem( idx : integer; obj : PPyObject) : Integer; override;
28+
function SqLength : NativeInt; override;
29+
function SqItem( idx : NativeInt ) : PPyObject; override;
30+
function SqAssItem( idx : NativeInt; obj : PPyObject) : Integer; override;
3131

3232
// Class methods
3333
class procedure RegisterMethods( PythonType : TPythonType ); override;
@@ -196,7 +196,7 @@ procedure TPyStringList.SetStrings(const Value: TStringList);
196196
fStrings.Assign(Value);
197197
end;
198198

199-
function TPyStringList.SqAssItem(idx: integer; obj: PPyObject): Integer;
199+
function TPyStringList.SqAssItem(idx: NativeInt; obj: PPyObject): Integer;
200200
begin
201201
with GetPythonEngine do
202202
begin
@@ -213,7 +213,7 @@ function TPyStringList.SqAssItem(idx: integer; obj: PPyObject): Integer;
213213
end;
214214
end;
215215

216-
function TPyStringList.SqItem(idx: Integer): PPyObject;
216+
function TPyStringList.SqItem(idx: NativeInt): PPyObject;
217217
begin
218218
with GetPythonEngine do
219219
begin
@@ -227,7 +227,7 @@ function TPyStringList.SqItem(idx: Integer): PPyObject;
227227
end;
228228
end;
229229

230-
function TPyStringList.SqLength: Integer;
230+
function TPyStringList.SqLength: NativeInt;
231231
begin
232232
Result := Strings.Count;
233233
end;

0 commit comments

Comments
 (0)