Skip to content

Commit c4a98fb

Browse files
author
thomas.heller
committed
Fix two compiler warnings on Win64.
git-svn-id: http://svn.python.org/projects/python/branches/py3k@58990 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent c849cd0 commit c4a98fb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/_ctypes/_ctypes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@ SimpleType_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
14771477
StgDictObject *stgdict;
14781478
PyObject *proto;
14791479
const char *proto_str;
1480-
int proto_len;
1480+
Py_ssize_t proto_len;
14811481
PyMethodDef *ml;
14821482
struct fielddesc *fmt;
14831483

Modules/_ctypes/libffi_msvc/prep_cif.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ ffi_status ffi_prep_cif(/*@out@*/ /*@partial@*/ ffi_cif *cif,
163163
bytes = ALIGN(bytes, (*ptr)->alignment);
164164

165165
#endif
166-
bytes += STACK_ARG_SIZE((*ptr)->size);
166+
bytes += (unsigned)STACK_ARG_SIZE((*ptr)->size);
167167
}
168168
#endif
169169
}

0 commit comments

Comments
 (0)