Skip to content

bpo-9566: Fix compiler warnings in pyexpat.c - #10654

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:pyexpat_warn
Nov 22, 2018
Merged

vstinner merged 1 commit into
python:masterfrom
vstinner:pyexpat_warn

Conversation

@vstinner

@vstinner vstinner commented Nov 22, 2018 •

Copy link
Copy Markdown
Member

Explicit cast a intptr_t to int to fix two warnings
on 64-bit Windows:

Modules\pyexpat.c(1181): warning C4244: 'initializing':
conversion from '__int64' to 'int', possible  loss of data

Modules\pyexpat.c(1192): warning C4244: 'initializing':
conversion from '__int64' to 'int', possible  loss of data

https://bugs.python.org/issue9566

Explicit cast a intptr_t to int to fix two warnings
on 64-bit Windows:

    Modules\pyexpat.c(1181): warning C4244: 'initializing':
    conversion from '__int64' to 'int', possible  loss of data

    Modules\pyexpat.c(1192): warning C4244: 'initializing':
    conversion from '__int64' to 'int', possible  loss of data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants