summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dbus/dbus-internals.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/dbus/dbus-internals.h b/dbus/dbus-internals.h
index c7967d24..deee366f 100644
--- a/dbus/dbus-internals.h
+++ b/dbus/dbus-internals.h
@@ -277,7 +277,8 @@ _dbus_assert_error_xor_bool (const DBusError *error,
*/
#define _DBUS_ALIGN_VALUE(this, boundary) \
- (( ((uintptr_t)(this)) + (((uintptr_t)(boundary)) -1)) & (~(((uintptr_t)(boundary))-1)))
+ ((((uintptr_t) (this)) + (((size_t) (boundary)) - 1)) & \
+ (~(((size_t) (boundary)) - 1)))
#define _DBUS_ALIGN_ADDRESS(this, boundary) \
((void*)_DBUS_ALIGN_VALUE(this, boundary))