Commit 73183fbf authored by W. Trevor King's avatar W. Trevor King
Browse files

Restore native byte order before running need_to_reorder_bytes.

Otherwise an earier switch to a non-native byte ordering will confuse
the current load.
parent 433ce470
......@@ -476,6 +476,7 @@ def loadibw(filename, strict=True):
f = open(filename, 'rb')
b = buffer(
version = BinHeaderCommon.unpack_dict_from(b)['version']
needToReorderBytes = need_to_reorder_bytes(version)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment