fix python search

This commit is contained in:
Yunbin Liu 2024-03-22 07:23:55 +00:00
parent 22d2e2ed01
commit 3b7cc3d477
1 changed files with 5 additions and 5 deletions

View File

@ -162,7 +162,7 @@ class XdbSearcher(object):
return 0 return 0
def getInt2(self, b, offset): def getInt2(self, b, offset):
return ((b[offset] & 0x000000FF) | (b[offset+1] & 0x0000FF00)) return ((b[offset] & 0x000000FF) | (b[offset+1] << 8))
def close(self): def close(self):
if self.__f is not None: if self.__f is not None: