From 48600c72c1afe1096c2412a135a43f8cdd895195 Mon Sep 17 00:00:00 2001 From: Zackery Spytz Date: Sun, 31 Mar 2019 10:00:12 -0600 Subject: bpo-35947: Fix a compiler warning in _ctypes.c's StructUnionType_paramfunc(). (GH-12629) --- Modules/_ctypes/_ctypes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index 7479eda..03f8e75 100644 --- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c @@ -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; -- cgit v0.12