This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author altendky
Recipients altendky, christian.heimes, vstinner
Date 2016-09-20.17:52:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1474393953.85.0.305129350952.issue28215@psf.upfronthosting.co.za>
In-reply-to
Content
I do not seem to be getting a compiler warning.

arm-fsl-linux-gnueabi-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes    -Werror=declaration-after-statement   -I. -IInclude -I./Include -I"/epc/t/262/misc-build-arm-fsl-linux-gnueabi/sysroot/root/all//opt/epc/include"   -DPy_BUILD_CORE  -c ./Modules/socketmodule.c -o Modules/socketmodule.o

To really encompass all cases I think you are correct that both a signed and an unsigned handler are needed.  Though, I have an idea for something nifty, I'll share if it works.

Regardless, shouldn't they use `intmax_t` and `uintmax_t` from stdtypes.h to make sure they handle anything that could be defined in the referenced C code?  In my case simply switching from `long` to `intmax_t` would be sufficient.

Note that I am not worried about getting this fixed for my one case.  My workaround is fine for my application.

I also will hopefully be correcting the subject to >=2**31 if this change does what I think.  Good ol' off-by-one.
History
Date User Action Args
2016-09-20 17:52:33altendkysetrecipients: + altendky, vstinner, christian.heimes
2016-09-20 17:52:33altendkysetmessageid: <1474393953.85.0.305129350952.issue28215@psf.upfronthosting.co.za>
2016-09-20 17:52:33altendkylinkissue28215 messages
2016-09-20 17:52:33altendkycreate