Commit 798ad9f8 authored by Lisandro Dalcin's avatar Lisandro Dalcin Committed by Stefan Behnel

Fix C compiler warning about implicit sign conversion (GH-4439)

parent 0f7bd0d1
...@@ -658,7 +658,7 @@ static int __Pyx_MergeVtables(PyTypeObject *type) { ...@@ -658,7 +658,7 @@ static int __Pyx_MergeVtables(PyTypeObject *type) {
base = base->tp_base; 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; base_vtables[0] = unknown;
// Could do MRO resolution of individual methods in the future, assuming // Could do MRO resolution of individual methods in the future, assuming
// compatible vtables, but for now simply require a common vtable base. // compatible vtables, but for now simply require a common vtable base.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment