Properly escape QDECREF macro arguments
QDECREF does not properly escape the macro arguments which can lead to unexpected syntax errors. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
78f5d72602
commit
c99ca93142
@ -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) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user