diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2018-12-27 10:39:48 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2018-12-27 10:39:48 +0100 |
commit | 278697ce05888044354240113873da5c517bd3b5 (patch) | |
tree | 26e8c272bc9112b3ba683ddabd445f9e69c48de2 | |
parent | c78b4db55c299b1efbb4cc0bc5997470d540404a (diff) | |
download | cython-278697ce05888044354240113873da5c517bd3b5.tar.gz |
Work around a C compiler warning (in PyPy's cpyext).
-rw-r--r-- | Cython/Utility/ModuleSetupCode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c index f2f62f98b..975bb254c 100644 --- a/Cython/Utility/ModuleSetupCode.c +++ b/Cython/Utility/ModuleSetupCode.c @@ -1072,7 +1072,7 @@ static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) { if (__pyx_code_cache.count == __pyx_code_cache.max_count) { int new_max = __pyx_code_cache.max_count + 64; entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc( - __pyx_code_cache.entries, (size_t)new_max*sizeof(__Pyx_CodeObjectCacheEntry)); + __pyx_code_cache.entries, ((size_t)new_max) * sizeof(__Pyx_CodeObjectCacheEntry)); if (unlikely(!entries)) { return; } |