« Previous | Next » 

Revision 5f5bcd80

ID5f5bcd80f8c365bca1480dc39141952fa7f88c71

Added by Kevin Wolf about 10 years ago

block: Don't call ROUND_UP with negative values

The behaviour of the ROUND_UP macro with negative numbers isn't obvious.
It happens to do the right thing in this please, but better avoid it.

Suggested-by: Laszlo Ersek <>
Signed-off-by: Kevin Wolf <>
Reviewed-by: Eric Blake <>
Reviewed-by: Laszlo Ersek <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences