From 8b744412aab11fe4997367adf1a714ef2cb3946e Mon Sep 17 00:00:00 2001 From: Valentin Date: Sun, 30 Aug 2020 11:08:42 +0200 Subject: 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. --- include/xcursor/xcursor.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/xcursor/xcursor.h b/include/xcursor/xcursor.h index 62e23220..285f4de6 100644 --- a/include/xcursor/xcursor.h +++ b/include/xcursor/xcursor.h @@ -26,8 +26,10 @@ #ifndef XCURSOR_H #define XCURSOR_H -typedef int XcursorBool; -typedef unsigned int XcursorUInt; +#include + +typedef int XcursorBool; +typedef uint32_t XcursorUInt; typedef XcursorUInt XcursorDim; typedef XcursorUInt XcursorPixel; -- cgit v1.2.3