From e2e6221f258a80890cd0a2f7ba57a12d7347b7b8 Mon Sep 17 00:00:00 2001 From: Siu Kwan Lam Date: Mon, 17 Dec 2012 14:24:05 -0600 Subject: [PATCH] Fix last commit --- llvm_cbuilder/shortnames.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm_cbuilder/shortnames.py b/llvm_cbuilder/shortnames.py index 2d966d4..44bb1ad 100644 --- a/llvm_cbuilder/shortnames.py +++ b/llvm_cbuilder/shortnames.py @@ -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]