summaryrefslogtreecommitdiffstats
path: root/cursor
diff options
context:
space:
mode:
authorValentin <vakevk+git@gmail.com>2020-09-04 12:12:56 +0200
committerValentin <vakevk+git@gmail.com>2020-09-04 12:27:23 +0200
commitfc3beac71f631fb16ee2257e9a6c9ec07cd0c90d (patch)
tree25c19200dc46309623c28c73bbb4dff0a2d65812 /cursor
parentAdd a basic gitlab issue template (diff)
downloadwayland-fc3beac71f631fb16ee2257e9a6c9ec07cd0c90d.tar
wayland-fc3beac71f631fb16ee2257e9a6c9ec07cd0c90d.tar.gz
wayland-fc3beac71f631fb16ee2257e9a6c9ec07cd0c90d.tar.bz2
wayland-fc3beac71f631fb16ee2257e9a6c9ec07cd0c90d.tar.lz
wayland-fc3beac71f631fb16ee2257e9a6c9ec07cd0c90d.tar.xz
wayland-fc3beac71f631fb16ee2257e9a6c9ec07cd0c90d.tar.zst
wayland-fc3beac71f631fb16ee2257e9a6c9ec07cd0c90d.zip
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 <vakevk@gmail.com>
Diffstat (limited to 'cursor')
-rw-r--r--cursor/xcursor.h4
1 files changed, 3 insertions, 1 deletions
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 <stdint.h>
+
typedef int XcursorBool;
-typedef unsigned int XcursorUInt;
+typedef uint32_t XcursorUInt;
typedef XcursorUInt XcursorDim;
typedef XcursorUInt XcursorPixel;