mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-07 10:43:35 +00:00
pad_to_int32
This commit is contained in:
@@ -184,10 +184,10 @@ bytes_to_int32(const size_t bytes)
|
||||
* @param bytes The minimum number of bytes needed.
|
||||
* @return The closest multiple of 4 that is equal or higher than bytes.
|
||||
*/
|
||||
static inline int
|
||||
pad_to_int32(const int bytes)
|
||||
static inline size_t
|
||||
pad_to_int32(const size_t bytes)
|
||||
{
|
||||
return (((bytes) + 3) & ~3);
|
||||
return (((bytes) + 3) & ~((size_t)3));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user