diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-08-25 13:30:31 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@qt.io> | 2017-08-25 11:39:47 +0000 |
commit | dcbc28cf28980aa35e8a430254b980c606be865f (patch) | |
tree | 39be28cdbcf86fa3135c3f57f979d672e2154c92 /src/qml/jsruntime/qv4context_p.h | |
parent | f1aff1f2d495562460a87d351e62c06109045a3a (diff) |
Fix assertion in debug builds
The code is doing the right thing, but was hitting an assertion
meant for other use cases.
Change-Id: I4b175fda32f99fa4f09a19d70a9de33d8eacc6b7
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4context_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4context_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4context_p.h b/src/qml/jsruntime/qv4context_p.h index 57ba29c228..d18b9a13a5 100644 --- a/src/qml/jsruntime/qv4context_p.h +++ b/src/qml/jsruntime/qv4context_p.h @@ -155,7 +155,7 @@ DECLARE_HEAP_OBJECT(CallContext, ExecutionContext) { return static_cast<int>(nArgs); } const Value *args() const { - return &locals[locals.size]; + return locals.data() + locals.size; } void setArg(uint index, Value v); |