From 448398a3b97a77648e90cc993597bafb2ad95eac Mon Sep 17 00:00:00 2001 From: Valentin Date: Sun, 30 Aug 2020 15:35:16 +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/X11/Xcursor/Xcursor.h.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/X11/Xcursor/Xcursor.h.in b/include/X11/Xcursor/Xcursor.h.in index 1a14386..36400bf 100644 --- a/include/X11/Xcursor/Xcursor.h.in +++ b/include/X11/Xcursor/Xcursor.h.in @@ -23,11 +23,12 @@ #ifndef _XCURSOR_H_ #define _XCURSOR_H_ #include +#include #include #include typedef int XcursorBool; -typedef unsigned int XcursorUInt; +typedef uint32_t XcursorUInt; typedef XcursorUInt XcursorDim; typedef XcursorUInt XcursorPixel; -- cgit v1.2.1