From fc3beac71f631fb16ee2257e9a6c9ec07cd0c90d Mon Sep 17 00:00:00 2001 From: Valentin Date: Fri, 4 Sep 2020 12:12:56 +0200 Subject: [PATCH] Use fixed size integer type This type is meant to be 4 bytes large as seen in _XcursorReadUInt which always reads 4 bytes. An unsigned int is often 4 bytes large but this isnt' guaranteed so it is cleaner to use the exact type we want. Signed-off-by: Valentin Kettner --- cursor/xcursor.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cursor/xcursor.h b/cursor/xcursor.h index 62e2322..c1ca12c 100644 --- a/cursor/xcursor.h +++ b/cursor/xcursor.h @@ -26,8 +26,10 @@ #ifndef XCURSOR_H #define XCURSOR_H +#include + typedef int XcursorBool; -typedef unsigned int XcursorUInt; +typedef uint32_t XcursorUInt; typedef XcursorUInt XcursorDim; typedef XcursorUInt XcursorPixel; -- 2.7.4