bpo-32436: Don't use native popcount() (also fixes bpo-32641) (#5292)

This commit is contained in:
Yury Selivanov
2018-01-23 22:17:04 -05:00
committed by GitHub
parent 6b273f7f40
commit b7a80d543e
2 changed files with 13 additions and 15 deletions

View File

@@ -1171,7 +1171,7 @@ get_token_missing(void)
int
PyContext_ClearFreeList(void)
{
int size = ctx_freelist_len;
Py_ssize_t size = ctx_freelist_len;
while (ctx_freelist_len) {
PyContext *ctx = ctx_freelist;
ctx_freelist = (PyContext *)ctx->ctx_weakreflist;