mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-26 01:49:01 +00:00
include: misc.h: change bytes_to_int32() to size_t
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user