Fix two compiler warnings on Win64.

This commit is contained in:
Thomas Heller 2007-11-15 20:03:00 +00:00
parent 4d0ebcc7fa
commit 6e8ea0fd9c
2 changed files with 2 additions and 2 deletions

View File

@ -1477,7 +1477,7 @@ SimpleType_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
StgDictObject *stgdict;
PyObject *proto;
const char *proto_str;
int proto_len;
Py_ssize_t proto_len;
PyMethodDef *ml;
struct fielddesc *fmt;

View File

@ -163,7 +163,7 @@ ffi_status ffi_prep_cif(/*@out@*/ /*@partial@*/ ffi_cif *cif,
bytes = ALIGN(bytes, (*ptr)->alignment);
#endif
bytes += STACK_ARG_SIZE((*ptr)->size);
bytes += (unsigned)STACK_ARG_SIZE((*ptr)->size);
}
#endif
}