Skip to content

Commit

Permalink
MAINT: force int under python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLP committed Jan 6, 2019
1 parent 5258f3a commit 894f5b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basil/HL/sitcp_fifo.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def get_data(self):
Array of unsigned integers (32 bit).
'''
fifo_size = self._intf._get_tcp_data_size()
fifo_int_size = (fifo_size - (fifo_size % 4)) / 4
fifo_int_size = int((fifo_size - (fifo_size % 4)) / 4)
data = self._intf._get_tcp_data(fifo_int_size * 4)
return np.frombuffer(data, dtype=np.dtype('<u4'))

Expand Down

0 comments on commit 894f5b1

Please sign in to comment.