summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cython/Utility/ImportExport.c2
1 files changed, 1 insertions, 1 deletions
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.