我有以下问题。代码如下所示:
import binascii, struct
def crc32up(data):
# little endian!!
bin = struct.pack ('<I', binascii.crc32 (data))
return string.upper (binascii.hexlify (bin))
# Generate crc of time code.
#
timecrc_code = crc32up(time_code)
警告是:
DeprecationWarning: struct integer overflow masking is deprecated
timecrc_code = crc32up(time_code)
是什么导致了这个错误?