Fix some warnings produced by different compilers. (#5593)

This commit is contained in:
Serhiy Storchaka 2018-02-09 17:31:26 +02:00 committed by GitHub
parent 5bb0005f9f
commit bfe4fd5f2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 19 additions and 7 deletions

View file

@ -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;