From bf4c67678f765df0eeea83cafa9017cb7585fd29 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 1 Oct 2020 13:54:45 +0300 Subject: [PATCH] 3rdparty: Synchronize xcursor.{c,h} --- 3rdparty/xcursor.c | 9 +++++---- 3rdparty/xcursor.h | 4 +++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/3rdparty/xcursor.c b/3rdparty/xcursor.c index 689c702672..1f1360fb0a 100644 --- a/3rdparty/xcursor.c +++ b/3rdparty/xcursor.c @@ -285,10 +285,11 @@ _XcursorReadUInt (XcursorFile *file, XcursorUInt *u) if ((*file->read) (file, bytes, 4) != 4) return XcursorFalse; - *u = ((bytes[0] << 0) | - (bytes[1] << 8) | - (bytes[2] << 16) | - (bytes[3] << 24)); + + *u = ((XcursorUInt)(bytes[0]) << 0) | + ((XcursorUInt)(bytes[1]) << 8) | + ((XcursorUInt)(bytes[2]) << 16) | + ((XcursorUInt)(bytes[3]) << 24); return XcursorTrue; } diff --git a/3rdparty/xcursor.h b/3rdparty/xcursor.h index 188c3fa76a..eca6db1bdb 100644 --- a/3rdparty/xcursor.h +++ b/3rdparty/xcursor.h @@ -30,8 +30,10 @@ extern "C" { #endif +#include + typedef int XcursorBool; -typedef unsigned int XcursorUInt; +typedef uint32_t XcursorUInt; typedef XcursorUInt XcursorDim; typedef XcursorUInt XcursorPixel;