]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Use safer comparisons (only matters when sizeof(int) != sizeof(size_t)). fread
authorTrent Mick <trentm@activestate.com>
Sat, 12 Aug 2000 20:58:11 +0000 (20:58 +0000)
committerTrent Mick <trentm@activestate.com>
Sat, 12 Aug 2000 20:58:11 +0000 (20:58 +0000)
commit6c116dd56bf0b27637a0b1e9721f86e8879b1e67
tree11d2c044a0878ca578123be161a2ea08499a6af9
parent46cc7c0f7b7583927b8a253cdba87535c6522184
Use safer comparisons (only matters when sizeof(int) != sizeof(size_t)). fread
and fwrite return size_t, so it is safer to cast up to the largest type for the
comparison. I believe the cast is required at all to remove compiler warnings.
Modules/arraymodule.c
Modules/cPickle.c