diff options
Diffstat (limited to 'python/binaryview.py')
| -rw-r--r-- | python/binaryview.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index b19ecbd6..3467dcc3 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -708,7 +708,7 @@ class BinaryView(object): @property def endianness(self): """Endianness of the binary (read-only)""" - return core.BNGetDefaultEndianness(self.handle) + return Endianness(core.BNGetDefaultEndianness(self.handle)) @property def address_size(self): @@ -1577,7 +1577,7 @@ class BinaryView(object): :rtype: ModificationStatus or str """ if length is None: - return core.BNGetModification(self.handle, addr) + return ModificationStatus(core.BNGetModification(self.handle, addr)) data = (ModificationStatus * length)() length = core.BNGetModificationArray(self.handle, addr, data, length) return data[0:length] |
