@@ -474,7 +474,7 @@ TPythonVersionProp = record
474
474
end ;
475
475
476
476
PyObject = { $IFDEF CPUX86} packed { $ENDIF} record
477
- ob_refcnt: NativeInt ;
477
+ ob_refcnt: NativeUInt ;
478
478
ob_type: PPyTypeObject;
479
479
end ;
480
480
@@ -485,7 +485,7 @@ TPythonVersionProp = record
485
485
end ;
486
486
487
487
PySliceObject = { $IFDEF CPUX86} packed { $ENDIF} record
488
- ob_refcnt: NativeInt ;
488
+ ob_refcnt: NativeUInt ;
489
489
ob_type: PPyTypeObject;
490
490
start, stop, step: PPyObject;
491
491
end ;
@@ -544,7 +544,7 @@ TPythonVersionProp = record
544
544
PPyDescrObject = ^PyDescrObject;
545
545
PyDescrObject = { $IFDEF CPUX86} packed { $ENDIF} record
546
546
// Start of the Head of an object
547
- ob_refcnt : NativeInt ;
547
+ ob_refcnt : NativeUInt ;
548
548
ob_type : PPyTypeObject;
549
549
// End of the Head of an object
550
550
d_type : PPyTypeObject;
@@ -555,7 +555,7 @@ TPythonVersionProp = record
555
555
PyMethodDescrObject = { $IFDEF CPUX86} packed { $ENDIF} record
556
556
// Start of PyDescr_COMMON
557
557
// Start of the Head of an object
558
- ob_refcnt : NativeInt ;
558
+ ob_refcnt : NativeUInt ;
559
559
ob_type : PPyTypeObject;
560
560
// End of the Head of an object
561
561
d_type : PPyTypeObject;
@@ -568,7 +568,7 @@ TPythonVersionProp = record
568
568
PyMemberDescrObject = { $IFDEF CPUX86} packed { $ENDIF} record
569
569
// Start of PyDescr_COMMON
570
570
// Start of the Head of an object
571
- ob_refcnt : NativeInt ;
571
+ ob_refcnt : NativeUInt ;
572
572
ob_type : PPyTypeObject;
573
573
// End of the Head of an object
574
574
d_type : PPyTypeObject;
@@ -581,7 +581,7 @@ TPythonVersionProp = record
581
581
PyGetSetDescrObject = { $IFDEF CPUX86} packed { $ENDIF} record
582
582
// Start of PyDescr_COMMON
583
583
// Start of the Head of an object
584
- ob_refcnt : NativeInt ;
584
+ ob_refcnt : NativeUInt ;
585
585
ob_type : PPyTypeObject;
586
586
// End of the Head of an object
587
587
d_type : PPyTypeObject;
@@ -594,7 +594,7 @@ TPythonVersionProp = record
594
594
PyWrapperDescrObject = { $IFDEF CPUX86} packed { $ENDIF} record
595
595
// Start of PyDescr_COMMON
596
596
// Start of the Head of an object
597
- ob_refcnt : NativeInt ;
597
+ ob_refcnt : NativeUInt ;
598
598
ob_type : PPyTypeObject;
599
599
// End of the Head of an object
600
600
d_type : PPyTypeObject;
@@ -607,7 +607,7 @@ TPythonVersionProp = record
607
607
PPyModuleDef_Base = ^PyModuleDef_Base;
608
608
PyModuleDef_Base = { $IFDEF CPUX86} packed { $ENDIF} record
609
609
// Start of the Head of an object
610
- ob_refcnt : NativeInt ;
610
+ ob_refcnt : NativeUInt ;
611
611
ob_type : PPyTypeObject;
612
612
// End of the Head of an object
613
613
m_init : function( ) : PPyObject; cdecl;
@@ -667,7 +667,7 @@ PyBufferProcs = record
667
667
// object.h
668
668
669
669
PyTypeObject = { $IFDEF CPUX86} packed { $ENDIF} record
670
- ob_refcnt: NativeInt ;
670
+ ob_refcnt: NativeUInt ;
671
671
ob_type: PPyTypeObject;
672
672
ob_size: NativeInt; // Number of items in variable part
673
673
tp_name: PAnsiChar; // For printing
@@ -814,7 +814,7 @@ PyBufferProcs = record
814
814
type
815
815
PyDateTime_Delta = { $IFDEF CPUX86} packed { $ENDIF} record
816
816
// Start of the Head of an object
817
- ob_refcnt : NativeInt ;
817
+ ob_refcnt : NativeUInt ;
818
818
ob_type : PPyTypeObject;
819
819
// End of the Head of an object
820
820
hashcode : NativeInt; // -1 when unknown
@@ -826,7 +826,7 @@ PyBufferProcs = record
826
826
827
827
PyDateTime_TZInfo = { $IFDEF CPUX86} packed { $ENDIF} record // a pure abstract base clase
828
828
// Start of the Head of an object
829
- ob_refcnt : NativeInt ;
829
+ ob_refcnt : NativeUInt ;
830
830
ob_type : PPyTypeObject;
831
831
// End of the Head of an object
832
832
end ;
@@ -849,7 +849,7 @@ PyBufferProcs = record
849
849
_PyDateTime_BaseTZInfo = { $IFDEF CPUX86} packed { $ENDIF} record
850
850
// Start of _PyTZINFO_HEAD
851
851
// Start of the Head of an object
852
- ob_refcnt : NativeInt ;
852
+ ob_refcnt : NativeUInt ;
853
853
ob_type : PPyTypeObject;
854
854
// End of the Head of an object
855
855
hashcode : Integer;
@@ -873,7 +873,7 @@ PyBufferProcs = record
873
873
// Start of _PyDateTime_TIMEHEAD
874
874
// Start of _PyTZINFO_HEAD
875
875
// Start of the Head of an object
876
- ob_refcnt : NativeInt ;
876
+ ob_refcnt : NativeUInt ;
877
877
ob_type : PPyTypeObject;
878
878
// End of the Head of an object
879
879
hashcode : Integer;
@@ -888,7 +888,7 @@ PyBufferProcs = record
888
888
// Start of _PyDateTime_TIMEHEAD
889
889
// Start of _PyTZINFO_HEAD
890
890
// Start of the Head of an object
891
- ob_refcnt : NativeInt ;
891
+ ob_refcnt : NativeUInt ;
892
892
ob_type : PPyTypeObject;
893
893
// End of the Head of an object
894
894
hashcode : Integer;
@@ -910,7 +910,7 @@ PyBufferProcs = record
910
910
PyDateTime_Date = { $IFDEF CPUX86} packed { $ENDIF} record
911
911
// Start of _PyTZINFO_HEAD
912
912
// Start of the Head of an object
913
- ob_refcnt : NativeInt ;
913
+ ob_refcnt : NativeUInt ;
914
914
ob_type : PPyTypeObject;
915
915
// End of the Head of an object
916
916
hashcode : Integer;
@@ -929,7 +929,7 @@ PyBufferProcs = record
929
929
_PyDateTime_BaseDateTime = { $IFDEF CPUX86} packed { $ENDIF} record // hastzinfo false
930
930
// Start of _PyTZINFO_HEAD
931
931
// Start of the Head of an object
932
- ob_refcnt : NativeInt ;
932
+ ob_refcnt : NativeUInt ;
933
933
ob_type : PPyTypeObject;
934
934
// End of the Head of an object
935
935
hashcode : Integer;
@@ -943,7 +943,7 @@ PyBufferProcs = record
943
943
// Start of _PyDateTime_DATETIMEHEAD
944
944
// Start of _PyTZINFO_HEAD
945
945
// Start of the Head of an object
946
- ob_refcnt : NativeInt ;
946
+ ob_refcnt : NativeUInt ;
947
947
ob_type : PPyTypeObject;
948
948
// End of the Head of an object
949
949
hashcode : Integer;
@@ -958,7 +958,7 @@ PyBufferProcs = record
958
958
// bytearrayobject.h
959
959
960
960
PyByteArrayObject = { $IFDEF CPUX86} packed { $ENDIF} record
961
- ob_refcnt: NativeInt ;
961
+ ob_refcnt: NativeUInt ;
962
962
ob_type: PPyTypeObject;
963
963
ob_alloc: Py_ssize_t;
964
964
ob_bytes: PAnsiChar;
@@ -2576,9 +2576,9 @@ TPythonModule = class(TMethodsContainer)
2576
2576
// The base class of all new Python types
2577
2577
TPyObject = class
2578
2578
private
2579
- function Get_ob_refcnt : NativeInt ;
2579
+ function Get_ob_refcnt : NativeUInt ;
2580
2580
function Get_ob_type : PPyTypeObject;
2581
- procedure Set_ob_refcnt (const Value : NativeInt );
2581
+ procedure Set_ob_refcnt (const Value : NativeUInt );
2582
2582
procedure Set_ob_type (const Value : PPyTypeObject);
2583
2583
public
2584
2584
PythonType : TPythonType;
@@ -2599,7 +2599,7 @@ TPyObject = class
2599
2599
procedure Adjust (PyPointer: Pointer);
2600
2600
function GetModule : TPythonModule;
2601
2601
2602
- property ob_refcnt : NativeInt read Get_ob_refcnt write Set_ob_refcnt;
2602
+ property ob_refcnt : NativeUInt read Get_ob_refcnt write Set_ob_refcnt;
2603
2603
property ob_type : PPyTypeObject read Get_ob_type write Set_ob_type;
2604
2604
2605
2605
// Type services
@@ -7816,7 +7816,7 @@ function TPyObject.GetModule : TPythonModule;
7816
7816
Result := nil ;
7817
7817
end ;
7818
7818
7819
- function TPyObject.Get_ob_refcnt : NativeInt ;
7819
+ function TPyObject.Get_ob_refcnt : NativeUInt ;
7820
7820
begin
7821
7821
Result := GetSelf^.ob_refcnt;
7822
7822
end ;
@@ -7826,7 +7826,7 @@ function TPyObject.Get_ob_type: PPyTypeObject;
7826
7826
Result := GetSelf^.ob_type;
7827
7827
end ;
7828
7828
7829
- procedure TPyObject.Set_ob_refcnt (const Value : NativeInt );
7829
+ procedure TPyObject.Set_ob_refcnt (const Value : NativeUInt );
7830
7830
begin
7831
7831
GetSelf^.ob_refcnt := Value ;
7832
7832
end ;
0 commit comments