Commit b84444b6 authored by Max Kellermann's avatar Max Kellermann

archive/iso9660: rewrite the macro CEILING as function

parent 1e421cbc
...@@ -36,7 +36,11 @@ ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment