diff options
author | Lisandro Dalcin <dalcinl@gmail.com> | 2021-11-02 10:34:44 +0300 |
---|---|---|
committer | Lisandro Dalcin <dalcinl@gmail.com> | 2021-11-02 10:34:44 +0300 |
commit | b221e81f03b592a5f896a39342345f2c30f18d59 (patch) | |
tree | e0cf3c7c1d4386d3c20254d23f31968099c236f0 /Cython/Utility/ImportExport.c | |
parent | c69992aa4eb0f7b4529f776820d20b8c66486972 (diff) | |
download | cython-b221e81f03b592a5f896a39342345f2c30f18d59.tar.gz |
Fix GCC -Wsign-conversion warningdalcinl/fix-c-warning
Diffstat (limited to 'Cython/Utility/ImportExport.c')
-rw-r--r-- | Cython/Utility/ImportExport.c | 2 |
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. |