Skip to content

Commit

Permalink
api_hooks: fix bug in round reported by jg
Browse files Browse the repository at this point in the history
  • Loading branch information
williballenthin committed Nov 5, 2018
1 parent f9cb96b commit 090b0e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion floss/api_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def round(i, size):
'''
if i % size == 0:
return i
return i + (i - (i % size))
return i + (size - (i % size))


class RtlAllocateHeapHook(viv_utils.emulator_drivers.Hook):
Expand Down

0 comments on commit 090b0e6

Please sign in to comment.