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