New submission from Serhiy Storchaka:

zlib.adler32(), zlib.crc32(), and binascii.crc32() always return 32-bit 
unsigned integer in Python 3. binascii.crc_hqx() almost always returns 16-bit 
unsigned integer. But there is an exception. The result can negative only when 
arguments of binascii.crc_hqx() are empty bytes and negative integer. This 
looks as a bug and should be fixed. But may be no need to apply changes to 
maintained releases.

----------
components: Extension Modules
keywords: easy
messages: 238726
nosy: gregory.p.smith, serhiy.storchaka
priority: normal
severity: normal
stage: needs patch
status: open
title: binascii.crc_hqx() can return negative integer
type: behavior
versions: Python 3.5

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23728>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to