summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin <vakevk+git@gmail.com>2020-08-30 15:35:16 +0200
committerValentin <vakevk+git@gmail.com>2020-08-30 15:35:16 +0200
commit448398a3b97a77648e90cc993597bafb2ad95eac (patch)
tree309e75ba754692877b34bba5c46132b124a2efc4
parentb84b5d100f193fda0630c4d6fa889cd3e05ca033 (diff)
downloadxorg-lib-libXcursor-448398a3b97a77648e90cc993597bafb2ad95eac.tar.gz
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.
-rw-r--r--include/X11/Xcursor/Xcursor.h.in3
1 files changed, 2 insertions, 1 deletions
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 <stdio.h>
+#include <stdint.h>
#include <X11/Xfuncproto.h>
#include <X11/Xlib.h>
typedef int XcursorBool;
-typedef unsigned int XcursorUInt;
+typedef uint32_t XcursorUInt;
typedef XcursorUInt XcursorDim;
typedef XcursorUInt XcursorPixel;