From b49c8074a46250f21bc7d2c1a7f25e85b124403c Mon Sep 17 00:00:00 2001 From: Henri Menke Date: Tue, 17 Sep 2024 16:48:52 +0200 Subject: [PATCH] fix: treat varargs for min and max in luamath Fixes https://github.com/pgf-tikz/pgfplots/issues/492 Signed-off-by: Henri Menke --- .../pgf/libraries/luamath/pgf/luamath/functions.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tex/generic/pgf/libraries/luamath/pgf/luamath/functions.lua b/tex/generic/pgf/libraries/luamath/pgf/luamath/functions.lua index 367d6ae29..d161e7c91 100644 --- a/tex/generic/pgf/libraries/luamath/pgf/luamath/functions.lua +++ b/tex/generic/pgf/libraries/luamath/pgf/luamath/functions.lua @@ -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)