aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-04-15 09:19:58 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-04-15 10:51:28 +0200
commitbc1ae7380d446202396d3f0d72303318b9a27bc4 (patch)
tree4d926d961c0ce4b3d874c6b38039649fc3611519 /src
parent800bc0ed8d22bae49e7e3c5efce59aa33e5d6998 (diff)
Fix compilation in release mode
Change-Id: I02a41aa5336c8aaad8584c1b8a857ee6cecc2370 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/v4/moth/qv4vme_moth.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/v4/moth/qv4vme_moth.cpp b/src/v4/moth/qv4vme_moth.cpp
index 49d3cbac74..9f60a8eb26 100644
--- a/src/v4/moth/qv4vme_moth.cpp
+++ b/src/v4/moth/qv4vme_moth.cpp
@@ -185,7 +185,7 @@ static inline VM::Value *getValueRef(QQmlJS::VM::ExecutionContext *context,
// 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() ? context->locals + param.index \
+ : (param.isLocal() ? static_cast<VM::CallContext *>(context)->locals + param.index \
: getValueRef(context, stack, param))
#else
# define VALUE(param) *getValueRef(context, stack, param, stackSize)