aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4instr_moth.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/compiler/qv4instr_moth.cpp')
-rw-r--r--src/qml/compiler/qv4instr_moth.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4instr_moth.cpp b/src/qml/compiler/qv4instr_moth.cpp
index def58de9a8..c0b1be1492 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::HeaderSize();
- if (reg <= nFormals)
+ if (reg < nFormals)
return QStringLiteral("a%1").arg(reg);
reg -= nFormals;
return QStringLiteral("r%1").arg(reg);