Skip to content

Commit

Permalink
fix: treat varargs for min and max in luamath
Browse files Browse the repository at this point in the history
Fixes pgf-tikz/pgfplots#492

Signed-off-by: Henri Menke <[email protected]>
  • Loading branch information
hmenke committed Sep 17, 2024
1 parent d43fb10 commit b49c807
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tex/generic/pgf/libraries/luamath/pgf/luamath/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ function pgfluamathfunctions.less(x,y)
end
end

function pgfluamathfunctions.min(x,y)
return mathmin(x,y)
function pgfluamathfunctions.min(x,y,...)
return mathmin(x,y,...)
end

function pgfluamathfunctions.max(x,y)
return mathmax(x,y)
function pgfluamathfunctions.max(x,y,...)
return mathmax(x,y,...)
end

function pgfluamathfunctions.notequal(x,y)
Expand Down

0 comments on commit b49c807

Please sign in to comment.