[lasem] properties: add parenthesis to LSM_PROPERTY_OFFSET_TO_ID definition.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lasem] properties: add parenthesis to LSM_PROPERTY_OFFSET_TO_ID definition.
- Date: Fri, 22 Oct 2010 14:37:49 +0000 (UTC)
commit faec1bf0a372e6f4b30ca8c754cc86d4c8c4e77c
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Fri Oct 22 16:37:16 2010 +0200
properties: add parenthesis to LSM_PROPERTY_OFFSET_TO_ID definition.
src/lsmproperties.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/lsmproperties.h b/src/lsmproperties.h
index f3c9b73..1ea0a51 100644
--- a/src/lsmproperties.h
+++ b/src/lsmproperties.h
@@ -27,7 +27,7 @@
G_BEGIN_DECLS
-#define LSM_PROPERTY_OFFSET_TO_ID(structure,member) offsetof (structure, member) / sizeof (void *)
+#define LSM_PROPERTY_OFFSET_TO_ID(structure,member) (offsetof (structure, member) / sizeof (void *))
#define LSM_PROPERTY_ID_TO_OFFSET(id) ((id) * sizeof (void *))
typedef struct {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]