archive/iso9660: rewrite the macro CEILING as function
This commit is contained in:
parent
1e421cbcb2
commit
b84444b680
|
@ -36,7 +36,11 @@
|
||||||
|
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
#define CEILING(x, y) ((x+(y-1))/y)
|
static constexpr size_t
|
||||||
|
CEILING(size_t x, size_t y) noexcept
|
||||||
|
{
|
||||||
|
return (x + y - 1) / y;
|
||||||
|
}
|
||||||
|
|
||||||
struct Iso9660 {
|
struct Iso9660 {
|
||||||
iso9660_t *const iso;
|
iso9660_t *const iso;
|
||||||
|
|
Loading…
Reference in New Issue