Skip to content

Commit b49c807

Browse files
committed
fix: treat varargs for min and max in luamath
Fixes pgf-tikz/pgfplots#492 Signed-off-by: Henri Menke <henri@henrimenke.de>
1 parent d43fb10 commit b49c807

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tex/generic/pgf/libraries/luamath/pgf/luamath/functions.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,12 @@ function pgfluamathfunctions.less(x,y)
148148
end
149149
end
150150

151-
function pgfluamathfunctions.min(x,y)
152-
return mathmin(x,y)
151+
function pgfluamathfunctions.min(x,y,...)
152+
return mathmin(x,y,...)
153153
end
154154

155-
function pgfluamathfunctions.max(x,y)
156-
return mathmax(x,y)
155+
function pgfluamathfunctions.max(x,y,...)
156+
return mathmax(x,y,...)
157157
end
158158

159159
function pgfluamathfunctions.notequal(x,y)

0 commit comments

Comments
 (0)