Skip to content

Commit

Permalink
Corrected but for long long ints (64bit) in datatypeformat
Browse files Browse the repository at this point in the history
  • Loading branch information
ratal committed May 23, 2015
1 parent 33c6312 commit bb72f48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mdfreader/mdf4reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1417,7 +1417,7 @@ def datatypeformat4(signalDataType, numberOfBits):
elif numberOfBits <= 32:
dataType = 'I'
elif numberOfBits <= 64:
dataType = 'L'
dataType = 'Q'
else:
dataType = str(bits_to_bytes(numberOfBits) // 8) + 's'

Expand All @@ -1429,7 +1429,7 @@ def datatypeformat4(signalDataType, numberOfBits):
elif numberOfBits <= 32:
dataType = 'i'
elif numberOfBits <= 64:
dataType = 'l'
dataType = 'q'
else:
print(('Unsupported number of bits for signed int ' + str(signalDataType)))

Expand Down

0 comments on commit bb72f48

Please sign in to comment.