We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45d9024 commit c9dccc2Copy full SHA for c9dccc2
src/prometheus/compiler/compiler.lua
@@ -1261,7 +1261,7 @@ function Compiler:compileStatement(statement, funcDepth)
1261
1262
for i, expr in ipairs(statement.rhs) do
1263
if(i == #statement.rhs and #statement.lhs > #statement.rhs) then
1264
- local regs = self:compileExpression(expr, funcDepth, #statement.lhs - #statement.expressions + 1);
+ local regs = self:compileExpression(expr, funcDepth, #statement.lhs - #statement.rhs + 1);
1265
1266
for i, reg in ipairs(regs) do
1267
if(self:isVarRegister(reg)) then
0 commit comments