diff --git a/src/qml/compiler/qv4instr_moth.cpp b/src/qml/compiler/qv4instr_moth.cpp index 6edf5a4ae7..83aca3a02c 100644 --- a/src/qml/compiler/qv4instr_moth.cpp +++ b/src/qml/compiler/qv4instr_moth.cpp @@ -157,7 +157,7 @@ QString dumpRegister(int reg, int nFormals) else if (reg == CallData::Argc) return QStringLiteral("(argc)"); reg -= CallData::OffsetCount; - if (reg <= nFormals) + if (reg < nFormals) return QStringLiteral("a%1").arg(reg); reg -= nFormals; return QStringLiteral("r%1").arg(reg);