@@ -41,7 +41,7 @@ cdef class HashTable:
41
41
42
42
cdef class UInt64HashTable(HashTable):
43
43
cdef kh_uint64_t * table
44
- cdef int64_t na_position
44
+ cdef Py_ssize_t na_position
45
45
cdef bint uses_mask
46
46
47
47
cpdef get_item(self , uint64_t val)
@@ -51,7 +51,7 @@ cdef class UInt64HashTable(HashTable):
51
51
52
52
cdef class Int64HashTable(HashTable):
53
53
cdef kh_int64_t * table
54
- cdef int64_t na_position
54
+ cdef Py_ssize_t na_position
55
55
cdef bint uses_mask
56
56
57
57
cpdef get_item(self , int64_t val)
@@ -61,7 +61,7 @@ cdef class Int64HashTable(HashTable):
61
61
62
62
cdef class UInt32HashTable(HashTable):
63
63
cdef kh_uint32_t * table
64
- cdef int64_t na_position
64
+ cdef Py_ssize_t na_position
65
65
cdef bint uses_mask
66
66
67
67
cpdef get_item(self , uint32_t val)
@@ -71,7 +71,7 @@ cdef class UInt32HashTable(HashTable):
71
71
72
72
cdef class Int32HashTable(HashTable):
73
73
cdef kh_int32_t * table
74
- cdef int64_t na_position
74
+ cdef Py_ssize_t na_position
75
75
cdef bint uses_mask
76
76
77
77
cpdef get_item(self , int32_t val)
@@ -81,7 +81,7 @@ cdef class Int32HashTable(HashTable):
81
81
82
82
cdef class UInt16HashTable(HashTable):
83
83
cdef kh_uint16_t * table
84
- cdef int64_t na_position
84
+ cdef Py_ssize_t na_position
85
85
cdef bint uses_mask
86
86
87
87
cpdef get_item(self , uint16_t val)
@@ -91,7 +91,7 @@ cdef class UInt16HashTable(HashTable):
91
91
92
92
cdef class Int16HashTable(HashTable):
93
93
cdef kh_int16_t * table
94
- cdef int64_t na_position
94
+ cdef Py_ssize_t na_position
95
95
cdef bint uses_mask
96
96
97
97
cpdef get_item(self , int16_t val)
@@ -101,7 +101,7 @@ cdef class Int16HashTable(HashTable):
101
101
102
102
cdef class UInt8HashTable(HashTable):
103
103
cdef kh_uint8_t * table
104
- cdef int64_t na_position
104
+ cdef Py_ssize_t na_position
105
105
cdef bint uses_mask
106
106
107
107
cpdef get_item(self , uint8_t val)
@@ -111,7 +111,7 @@ cdef class UInt8HashTable(HashTable):
111
111
112
112
cdef class Int8HashTable(HashTable):
113
113
cdef kh_int8_t * table
114
- cdef int64_t na_position
114
+ cdef Py_ssize_t na_position
115
115
cdef bint uses_mask
116
116
117
117
cpdef get_item(self , int8_t val)
@@ -121,7 +121,7 @@ cdef class Int8HashTable(HashTable):
121
121
122
122
cdef class Float64HashTable(HashTable):
123
123
cdef kh_float64_t * table
124
- cdef int64_t na_position
124
+ cdef Py_ssize_t na_position
125
125
cdef bint uses_mask
126
126
127
127
cpdef get_item(self , float64_t val)
@@ -131,7 +131,7 @@ cdef class Float64HashTable(HashTable):
131
131
132
132
cdef class Float32HashTable(HashTable):
133
133
cdef kh_float32_t * table
134
- cdef int64_t na_position
134
+ cdef Py_ssize_t na_position
135
135
cdef bint uses_mask
136
136
137
137
cpdef get_item(self , float32_t val)
@@ -141,7 +141,7 @@ cdef class Float32HashTable(HashTable):
141
141
142
142
cdef class Complex64HashTable(HashTable):
143
143
cdef kh_complex64_t * table
144
- cdef int64_t na_position
144
+ cdef Py_ssize_t na_position
145
145
cdef bint uses_mask
146
146
147
147
cpdef get_item(self , complex64_t val)
@@ -151,7 +151,7 @@ cdef class Complex64HashTable(HashTable):
151
151
152
152
cdef class Complex128HashTable(HashTable):
153
153
cdef kh_complex128_t * table
154
- cdef int64_t na_position
154
+ cdef Py_ssize_t na_position
155
155
cdef bint uses_mask
156
156
157
157
cpdef get_item(self , complex128_t val)
0 commit comments