mirror of https://github.com/python/cpython
bpo-35947: Fix a compiler warning in _ctypes.c's StructUnionType_paramfunc(). (GH-12629)
This commit is contained in:
parent
79da388a40
commit
48600c72c1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue