From: Erik Verbruggen Date: Mon, 3 Jun 2013 11:32:51 +0000 (+0200) Subject: Fix VALUE/VALUEPTR macros in the interpreter. X-Git-Tag: upstream/5.2.1~669^2~332 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=734f65f151ccd491a2dd79fe511a7822016cf52b;p=platform%2Fupstream%2Fqtdeclarative.git Fix VALUE/VALUEPTR macros in the interpreter. Change-Id: I04f7625979974809bd62006520f67c5cb2d9c5fd Reviewed-by: Fawzi Mohamed --- diff --git a/src/qml/qml/v4/moth/qv4vme_moth.cpp b/src/qml/qml/v4/moth/qv4vme_moth.cpp index 9fb38f7..3a11e2a 100644 --- a/src/qml/qml/v4/moth/qv4vme_moth.cpp +++ b/src/qml/qml/v4/moth/qv4vme_moth.cpp @@ -188,13 +188,13 @@ static inline QV4::Value *getValueRef(QV4::ExecutionContext *context, } #if defined(QT_NO_DEBUG) -# define VALUE(param) *(VALUEPTR(param)) +# define VALUE(param) (*VALUEPTR(param)) // The non-temp case might need some tweaking for QML: there it would probably be a value instead of a local. # define VALUEPTR(param) \ - param.isTemp() ? stack + param.index \ - : (param.isLocal() ? static_cast(context)->locals + param.index \ - : getValueRef(context, stack, param)) + (param.isTemp() ? stack + param.index \ + : (param.isLocal() ? static_cast(context)->locals + param.index \ + : getValueRef(context, stack, param))) #else # define VALUE(param) *getValueRef(context, stack, param, stackSize) # define VALUEPTR(param) getValueRef(context, stack, param, stackSize)