Skip to content

Commit

Permalink
JavaScriptCore: c++11 compile fix
Browse files Browse the repository at this point in the history
Change-Id: I0de4140323db25765243748dfed8533bca39217c
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
  • Loading branch information
timblechmann authored and The Qt Project committed Dec 5, 2013
1 parent 8cc5a74 commit a2da34b
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1835,7 +1835,13 @@ RegisterID* BytecodeGenerator::emitNextPropertyName(RegisterID* dst, RegisterID*
RegisterID* BytecodeGenerator::emitCatch(RegisterID* targetRegister, Label* start, Label* end)
{
#if ENABLE(JIT)
HandlerInfo info = { start->bind(0, 0), end->bind(0, 0), instructions().size(), m_dynamicScopeDepth + m_baseScopeDepth, CodeLocationLabel() };
HandlerInfo info = {
static_cast<uint32_t>(start->bind(0, 0)),
static_cast<uint32_t>(end->bind(0, 0)),
static_cast<uint32_t>(instructions().size()),
static_cast<uint32_t>(m_dynamicScopeDepth + m_baseScopeDepth),
CodeLocationLabel()
};
#else
HandlerInfo info = {
static_cast<uint32_t>(start->bind(0, 0)),
Expand Down

0 comments on commit a2da34b

Please sign in to comment.