From b221e81f03b592a5f896a39342345f2c30f18d59 Mon Sep 17 00:00:00 2001 From: Lisandro Dalcin Date: Tue, 2 Nov 2021 10:34:44 +0300 Subject: Fix GCC -Wsign-conversion warning --- Cython/Utility/ImportExport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Utility/ImportExport.c b/Cython/Utility/ImportExport.c index 9082c1fb2..e0e161146 100644 --- a/Cython/Utility/ImportExport.c +++ b/Cython/Utility/ImportExport.c @@ -768,7 +768,7 @@ static int __Pyx_MergeVtables(PyTypeObject *type) { base = base->tp_base; } } - base_vtables = (void**) malloc(sizeof(void*) * (base_depth + 1)); + base_vtables = (void**) malloc(sizeof(void*) * (size_t)(base_depth + 1)); base_vtables[0] = unknown; // Could do MRO resolution of individual methods in the future, assuming // compatible vtables, but for now simply require a common vtable base. -- cgit v1.2.1