[glib] GDBusConnection: use uint for bitshifts
- From: Allison Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GDBusConnection: use uint for bitshifts
- Date: Tue, 1 Mar 2016 15:34:34 +0000 (UTC)
commit b54acf513d55e3ef8df3d913dc3c78572989d3df
Author: Allison Ryan Lortie <desrt desrt ca>
Date: Mon Feb 29 09:31:14 2016 -0500
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
gio/gdbusconnection.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gdbusconnection.c b/gio/gdbusconnection.c
index b355340..313670b 100644
--- a/gio/gdbusconnection.c
+++ b/gio/gdbusconnection.c
@@ -219,10 +219,10 @@ static GWeakRef the_system_bus;
* message, and we're being called from its thread, so no memory barrier is
* 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 */
-#define CALL_FLAGS_INITIALIZING (1<<31)
+#define CALL_FLAGS_INITIALIZING (1u << 31)
/* ---------------------------------------------------------------------------------------------------- */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]