[issue19739] Legit compiler warnings in new pickle code on 32-bit Windows

Zachary Ware report at bugs.python.org
Mon Nov 25 19:32:37 CET 2013


Zachary Ware added the comment:

The attached patch fixes the warnings and doesn't appear to break anything obvious.

The first 4 are fixed by reverting Alexandre's change from '#if SIZEOF_SIZE_T' to 'if (sizeof(size_t)'.

The last one is different from the original 5th warning, and is fixed using the same trick that has been used in Modules/audioop.c; that is, use '(-0x7fffffffL - 1)' rather than '-0x80000000L', which MSVC can't seem to handle.

----------
keywords: +patch
Added file: http://bugs.python.org/file32839/issue19739.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19739>
_______________________________________


More information about the Python-bugs-list mailing list