Mercurial > hgrepos > Python > apps > py-cutils
diff cutils/util/crc32.py @ 258:57057028f13e
FIX: description for overflow error
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 16 Feb 2025 09:46:21 +0100 |
| parents | d852559df523 |
| children | b24080e5ca96 |
line wrap: on
line diff
--- a/cutils/util/crc32.py Sun Feb 16 09:30:23 2025 +0100 +++ b/cutils/util/crc32.py Sun Feb 16 09:46:21 2025 +0100 @@ -84,7 +84,7 @@ def as_uint32(i): if i < 0: if i < -2147483648: - raise OverflowError("") + raise OverflowError("invalid number for a 32-bit CRC") return (~i ^ 0xFFFFFFFF) else: return i
