mirror of
https://github.com/xemu-project/xemu.git
synced 2025-04-02 11:11:48 -04:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue