diff --git a/src/archive/plugins/Iso9660ArchivePlugin.cxx b/src/archive/plugins/Iso9660ArchivePlugin.cxx index 8e698ae4d..af4b02aee 100644 --- a/src/archive/plugins/Iso9660ArchivePlugin.cxx +++ b/src/archive/plugins/Iso9660ArchivePlugin.cxx @@ -36,7 +36,11 @@ #include -#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 { iso9660_t *const iso;