bpo-35947: Fix a compiler warning in _ctypes.c's StructUnionType_paramfunc(). (GH-12629)

This commit is contained in:
Zackery Spytz 2019-03-31 10:00:12 -06:00 committed by Serhiy Storchaka
parent 79da388a40
commit 48600c72c1
1 changed files with 1 additions and 1 deletions

View File

@ -406,7 +406,7 @@ StructUnionType_paramfunc(CDataObject *self)
CDataObject *copied_self;
StgDictObject *stgdict;
if (self->b_size > sizeof(void*)) {
if ((size_t)self->b_size > sizeof(void*)) {
void *new_ptr = PyMem_Malloc(self->b_size);
if (new_ptr == NULL)
return NULL;