diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-02-09 15:56:34 (GMT) |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2018-02-09 15:56:34 (GMT) |
| commit | 7df80492fc91cb5f344ef53a1ccce9a5bd3f4855 (patch) | |
| tree | 3360e277fb6d0ef7fe9ce13b47fd60723a02b53d /Python/context.c | |
| parent | 3a047a781a82e0a55c5dae1758e91f1f1ca76026 (diff) | |
| download | cpython-7df80492fc91cb5f344ef53a1ccce9a5bd3f4855.zip cpython-7df80492fc91cb5f344ef53a1ccce9a5bd3f4855.tar.gz cpython-7df80492fc91cb5f344ef53a1ccce9a5bd3f4855.tar.bz2 | |
Fix some warnings produced by different compilers. (GH-5593) (GH-5600)
(cherry picked from commit bfe4fd5f2e96e72eecb5b8a0c7df0ac1689f3b7e)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python/context.c')
| -rw-r--r-- | Python/context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/context.c b/Python/context.c index 2034a20..b727748 100644 --- a/Python/context.c +++ b/Python/context.c @@ -8,7 +8,7 @@ #define CONTEXT_FREELIST_MAXLEN 255 static PyContext *ctx_freelist = NULL; -static Py_ssize_t ctx_freelist_len = 0; +static int ctx_freelist_len = 0; #include "clinic/context.c.h" @@ -1177,7 +1177,7 @@ get_token_missing(void) int PyContext_ClearFreeList(void) { - Py_ssize_t size = ctx_freelist_len; + int size = ctx_freelist_len; while (ctx_freelist_len) { PyContext *ctx = ctx_freelist; ctx_freelist = (PyContext *)ctx->ctx_weakreflist; |
