archive/iso9660: rewrite the macro CEILING as function

This commit is contained in:
Max Kellermann 2020-02-05 19:43:20 +01:00
parent 1e421cbcb2
commit b84444b680
1 changed files with 5 additions and 1 deletions

View File

@ -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;