diff --git a/llvm/_core.cpp b/llvm/_core.cpp index 8181628..b8899ef 100644 --- a/llvm/_core.cpp +++ b/llvm/_core.cpp @@ -63,7 +63,7 @@ template <> PyObject* pycap_new(int i) return PyLong_FromLong(static_cast(i)); } -template <> PyObject* pycap_new(size_t i) +template <> PyObject* pycap_new(unsigned long i) { return PyLong_FromLong(static_cast(i)); }