]> granicus.if.org Git - python/commit
bpo-9566: Fix compiler warnings in pyexpat.c (GH-10654)
authorVictor Stinner <vstinner@redhat.com>
Thu, 22 Nov 2018 12:21:43 +0000 (13:21 +0100)
committerGitHub <noreply@github.com>
Thu, 22 Nov 2018 12:21:43 +0000 (13:21 +0100)
commit28f468cb19e3097079b7ce7850e6048de99022fa
tree0bda352ec8b1777c3790882e315c97eb939119de
parentcdbcb773f5db24e23fa90e644ec620d54bd08127
bpo-9566: Fix compiler warnings in pyexpat.c (GH-10654)

Explicit cast a pointer difference (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
Modules/pyexpat.c