]> granicus.if.org Git - python/commit
_Stream.close(): Try to kill struct.pack() warnings when
authorTim Peters <tim.peters@gmail.com>
Wed, 2 Aug 2006 05:20:08 +0000 (05:20 +0000)
committerTim Peters <tim.peters@gmail.com>
Wed, 2 Aug 2006 05:20:08 +0000 (05:20 +0000)
commita05f6e244a452a4a5ee647f6e1fc9ce01a13d696
treea65e78bc7bf3606e4cb26d2ba42557ae6765bd13
parent99dfe3c411bdaa835075a27fdccefef13d88e214
_Stream.close():  Try to kill struct.pack() warnings when
writing the crc to file on the "PPC64 Debian trunk" buildbot
when running test_tarfile.

This is again a case where the native zlib crc is an unsigned
32-bit int, but the Python wrapper implicitly casts it to
signed C long, so that "the sign bit looks different" on
different platforms.
Lib/tarfile.py