Merge pull request #344 from liuyunbin/fix-python-search

fix python search caused by getInt2 impl
This commit is contained in:
狮子的魂 2024-03-22 16:14:24 +08:00 committed by GitHub
commit 40c7f53fc9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 5 deletions

View File

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