Skip to content

Commit c9dccc2

Browse files
committed
Fix bug in Compiler
1 parent 45d9024 commit c9dccc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prometheus/compiler/compiler.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,7 @@ function Compiler:compileStatement(statement, funcDepth)
12611261

12621262
for i, expr in ipairs(statement.rhs) do
12631263
if(i == #statement.rhs and #statement.lhs > #statement.rhs) then
1264-
local regs = self:compileExpression(expr, funcDepth, #statement.lhs - #statement.expressions + 1);
1264+
local regs = self:compileExpression(expr, funcDepth, #statement.lhs - #statement.rhs + 1);
12651265

12661266
for i, reg in ipairs(regs) do
12671267
if(self:isVarRegister(reg)) then

0 commit comments

Comments
 (0)