Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Commit

Permalink
Remove platform dependence in interpreting 'long' and 'unsigned long'…
Browse files Browse the repository at this point in the history
… types.
  • Loading branch information
jpivarski committed Jan 30, 2020
1 parent dc87f49 commit be5f56c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uproot/interp/auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ def _ftype2dtype(fType, awkward):
elif fType in (uproot.const.kBits, uproot.const.kUInt, uproot.const.kCounter):
return awkward.numpy.dtype(">u4")
elif fType == uproot.const.kLong:
return awkward.numpy.dtype(awkward.numpy.long).newbyteorder(">")
return awkward.numpy.dtype(">i8")
elif fType == uproot.const.kULong:
return awkward.numpy.dtype(">u" + repr(awkward.numpy.dtype(awkward.numpy.long).itemsize))
return awkward.numpy.dtype(">u8")
elif fType == uproot.const.kLong64:
return awkward.numpy.dtype(">i8")
elif fType == uproot.const.kULong64:
Expand Down

0 comments on commit be5f56c

Please sign in to comment.