GDBusConnection: use uint for bitshifts

"1 << 31" is not well-defined, do use "1u << 31" instead.

https://bugzilla.gnome.org/show_bug.cgi?id=762748
This commit is contained in:
Allison Ryan Lortie 2016-02-29 09:31:14 -05:00
parent 96fb3b9c03
commit b54acf513d

View File

@ -219,10 +219,10 @@ static GWeakRef the_system_bus;
* message, and we're being called from its thread, so no memory barrier is * message, and we're being called from its thread, so no memory barrier is
* required before accessing them. * required before accessing them.
*/ */
#define SEND_MESSAGE_FLAGS_INITIALIZING (1<<31) #define SEND_MESSAGE_FLAGS_INITIALIZING (1u << 31)
/* Same as SEND_MESSAGE_FLAGS_INITIALIZING, but in GDBusCallFlags */ /* Same as SEND_MESSAGE_FLAGS_INITIALIZING, but in GDBusCallFlags */
#define CALL_FLAGS_INITIALIZING (1<<31) #define CALL_FLAGS_INITIALIZING (1u << 31)
/* ---------------------------------------------------------------------------------------------------- */ /* ---------------------------------------------------------------------------------------------------- */