aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2017-03-13 08:46:02 +0100
committerSimon Hausmann <simon.hausmann@qt.io>2017-03-13 08:03:57 +0000
commit30635ee2424dbd08bb5c2170be0c2dc5f9d23b2c (patch)
tree3110ca8cc902d2f018692b22075af3a2da3089cc /src
parentcb25abf2a818e76744426ff82619f7351132269f (diff)
Fix accidental assignment in assertion
Change-Id: Ic826901d120f8073727d06fccfe95e7d75e3d088 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/qml/jsruntime/qv4context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4context.cpp b/src/qml/jsruntime/qv4context.cpp
index 7a0df5dbf3..d2f2529979 100644
--- a/src/qml/jsruntime/qv4context.cpp
+++ b/src/qml/jsruntime/qv4context.cpp
@@ -343,7 +343,7 @@ void ExecutionContext::setProperty(String *name, const Value &value)
if (index < c->v4Function->nFormals) {
c->callData->args[c->v4Function->nFormals - index - 1] = value;
} else {
- Q_ASSERT(c->type = Heap::ExecutionContext::Type_CallContext);
+ Q_ASSERT(c->type == Heap::ExecutionContext::Type_CallContext);
index -= c->v4Function->nFormals;
static_cast<Heap::CallContext *>(c)->locals.set(scope.engine, index, value);
}
@@ -418,7 +418,7 @@ ReturnedValue ExecutionContext::getProperty(String *name)
if (index < UINT_MAX) {
if (index < c->v4Function->nFormals)
return c->callData->args[c->v4Function->nFormals - index - 1].asReturnedValue();
- Q_ASSERT(c->type = Heap::ExecutionContext::Type_CallContext);
+ Q_ASSERT(c->type == Heap::ExecutionContext::Type_CallContext);
return c->locals[index - c->v4Function->nFormals].asReturnedValue();
}
if (c->v4Function->isNamedExpression()) {