From 0ef55c0abb5f8a551b25b995d0a8068a6dcd66ce Mon Sep 17 00:00:00 2001 From: Kp Date: Sat, 8 Jun 2013 01:38:05 +0000 Subject: [PATCH] Force CRC to be positive --- SConstruct | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index b1309d7c8..d112d005f 100644 --- a/SConstruct +++ b/SConstruct @@ -84,7 +84,10 @@ class DXXCommon(LazyObjectConstructor): # when flags are changed. A full hash is # unnecessary here. 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 ( ('debug', 'dbg'), ('profiler', 'prf'),