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 b9d5464 commit b70fa33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basil/HL/bram_fifo.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def FIFO_INT_SIZE(self):
'''
fifo_size = self.FIFO_SIZE
# sometimes reading of FIFO size happens during writing to BRAM, but we want to have a multiplicity of 32 bits
return (fifo_size - (fifo_size % 4)) / 4
return int((fifo_size - (fifo_size % 4)) / 4)

def get_FIFO_INT_SIZE(self):
''' Get FIFO size in units of integers (32 bit).
Expand Down

0 comments on commit b70fa33

Please sign in to comment.