Attempt to fix build on 32-bit linux

This commit is contained in:
Siu Kwan Lam 2013-02-27 19:22:32 -06:00
commit 4bf0fa65ef

View file

@ -135,10 +135,10 @@ int py_int_to(PyObject *intobj, unsigned long long & val){
} }
static static
int py_int_to(PyObject *intobj, size_t & val){ int py_int_to(PyObject *intobj, unsigned long & val){
unsigned long long ull; unsigned long long ull;
if (py_int_to(intobj, ull)) { if (py_int_to(intobj, ull)) {
val = (size_t)ull; val = (unsigned long)ull;
return 1; return 1;
} else { } else {
return 0; return 0;