diff options
author | Valentin <vakevk+git@gmail.com> | 2020-08-30 11:08:42 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-09-01 11:58:56 +0200 |
commit | 8b744412aab11fe4997367adf1a714ef2cb3946e (patch) | |
tree | 2578e8bf23fc23c1cde4622bca4b8a071e159b4a /include/xcursor | |
parent | 2b418b4d8857a4eacd719b76dfd36210383db6d6 (diff) |
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.
Diffstat (limited to 'include/xcursor')
-rw-r--r-- | include/xcursor/xcursor.h | 6 |
1 files 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 <stdint.h> + +typedef int XcursorBool; +typedef uint32_t XcursorUInt; typedef XcursorUInt XcursorDim; typedef XcursorUInt XcursorPixel; |