Merge pull request #344 from liuyunbin/fix-python-search
fix python search caused by getInt2 impl
This commit is contained in:
commit
40c7f53fc9
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue