Force CRC to be positive
This commit is contained in:
parent
3c07a98d18
commit
0ef55c0abb
|
@ -84,7 +84,10 @@ class DXXCommon(LazyObjectConstructor):
|
||||||
# when flags are changed. A full hash is
|
# when flags are changed. A full hash is
|
||||||
# unnecessary here.
|
# unnecessary here.
|
||||||
import binascii
|
import binascii
|
||||||
default_builddir += '{:08x}-'.format(binascii.crc32(self.CFLAGS))
|
crc = binascii.crc32(self.CFLAGS)
|
||||||
|
if crc < 0:
|
||||||
|
crc = crc + 0x100000000
|
||||||
|
default_builddir += '{:08x}-'.format(crc)
|
||||||
for a in (
|
for a in (
|
||||||
('debug', 'dbg'),
|
('debug', 'dbg'),
|
||||||
('profiler', 'prf'),
|
('profiler', 'prf'),
|
||||||
|
|
Loading…
Reference in a new issue