diff --git a/tools/oneclick/base/common.py b/tools/oneclick/base/common.py index aa273a4dc8aea07b1a6b50cd4dc5ce64d82ab624..1c62d6374a428b2bd7d5e6a2aa8cce4caa02ff15 100644 --- a/tools/oneclick/base/common.py +++ b/tools/oneclick/base/common.py @@ -288,7 +288,8 @@ def reverse_byte(byte): """ Fast way to reverse a byte on 64-bit platforms. """ - return (byte * 0x0202020202L & 0x010884422010L) % 1023 + #return (byte * 0x0202020202L & 0x010884422010L) % 1023 + return(byte * 0x0202020202 & 0x010884422010) % 1023 # PD: check def reverse_word(word): """ @@ -829,7 +830,7 @@ class CommonBits: # We only want one bit bitmask = self.bitmask(1) return int((self.data >> bitslice) & bitmask) - print(bitmask ) + print(bitmask) else: print('CommonBits: Error: invalid slice range')