diff --git a/dbfread/field_parser.py b/dbfread/field_parser.py index e54ccb2..52e8528 100644 --- a/dbfread/field_parser.py +++ b/dbfread/field_parser.py @@ -169,6 +169,8 @@ def parseN(self, field, data): except ValueError: if not data.strip(): return None + elif isinstance(data, (bytes, bytearray)): + return int.from_bytes(data, byteorder='big', signed=True) else: # Account for , in numeric fields return float(data.replace(b',', b'.'))