X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=include%2Fwimlib%2Flookup_table.h;h=d6bd5ee30726ecb6fb5ad22e21a4230413f1d512;hp=2b2cfcd9184c65f8b311e328198c52c6ff7f033e;hb=7bbd03a7f450e59ebd7481cd1af0639131630f42;hpb=f3ab01445d6184f7c5ffd0251667de7ef7437f9a diff --git a/include/wimlib/lookup_table.h b/include/wimlib/lookup_table.h index 2b2cfcd9..d6bd5ee3 100644 --- a/include/wimlib/lookup_table.h +++ b/include/wimlib/lookup_table.h @@ -259,7 +259,7 @@ wim_resource_size(const struct wim_lookup_table_entry *lte) static inline u64 wim_resource_chunks(const struct wim_lookup_table_entry *lte) { - return (wim_resource_size(lte) + WIM_CHUNK_SIZE - 1) / WIM_CHUNK_SIZE; + return DIV_ROUND_UP(wim_resource_size(lte), WIM_CHUNK_SIZE); } static inline u64