From f90e673d7e58329aaa571c6bac5a667f7a167f81 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 7 Aug 2025 19:55:07 +0200 Subject: [PATCH] include: misc.h: change bytes_to_int32() to size_t --- include/misc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/misc.h b/include/misc.h index 8c7322e777..c66aa69b22 100644 --- a/include/misc.h +++ b/include/misc.h @@ -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); }