include: misc.h: change bytes_to_int32() to size_t

This commit is contained in:
Enrico Weigelt, metux IT consult
2025-08-07 19:55:07 +02:00
parent bec396062a
commit f90e673d7e

View File

@@ -193,8 +193,8 @@ bits_to_bytes(const int bits)
* @param bytes The minimum number of bytes needed.
* @return The number of 4-byte units needed to hold bytes.
*/
static inline int
bytes_to_int32(const int bytes)
static inline size_t
bytes_to_int32(const size_t bytes)
{
return (((bytes) + 3) >> 2);
}