summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qobject.h b/qobject.h
index 4cc928770..76f669f95 100644
--- a/qobject.h
+++ b/qobject.h
@@ -60,7 +60,7 @@ typedef struct QObject {
QObject base
/* Get the 'base' part of an object */
-#define QOBJECT(obj) (&obj->base)
+#define QOBJECT(obj) (&(obj)->base)
/* High-level interface for qobject_incref() */
#define QINCREF(obj) \