Use fixed size integer type
authorValentin <vakevk+git@gmail.com>
Fri, 4 Sep 2020 10:12:56 +0000 (12:12 +0200)
committerValentin <vakevk+git@gmail.com>
Fri, 4 Sep 2020 10:27:23 +0000 (12:27 +0200)
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 <vakevk@gmail.com>
cursor/xcursor.h

index 62e2322..c1ca12c 100644 (file)
 #ifndef XCURSOR_H
 #define XCURSOR_H
 
+#include <stdint.h>
+
 typedef int            XcursorBool;
-typedef unsigned int   XcursorUInt;
+typedef uint32_t       XcursorUInt;
 
 typedef XcursorUInt    XcursorDim;
 typedef XcursorUInt    XcursorPixel;