Fix last commit
This commit is contained in:
parent
f2e65c6c54
commit
e2e6221f25
1 changed files with 2 additions and 2 deletions
|
|
@ -18,9 +18,9 @@ def _determine_sizes():
|
|||
# Makes following assumption:
|
||||
# sizeof(py_ssize_t) == sizeof(ssize_t) == sizeof(size_t)
|
||||
any_size_t = getattr(ctypes, 'c_ssize_t', ctypes.c_size_t)
|
||||
return ctypes.sizeof(ctypes.c_void_p) * 8, ctypes.sizeof(any_ssize_t) * 8
|
||||
return ctypes.sizeof(ctypes.c_void_p) * 8, ctypes.sizeof(any_size_t) * 8
|
||||
|
||||
pointer_size, _py_ssize_t_bits = _determine_pointer_size()
|
||||
pointer_size, _py_ssize_t_bits = _determine_sizes()
|
||||
|
||||
intp = {32: int32, 64: int64}[pointer_size]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue