From 6e457654f0b8a7a71feeff2199ce5b8a63cbde8b Mon Sep 17 00:00:00 2001 From: Evgeny Kochetkov Date: Tue, 18 Sep 2018 22:02:41 +0300 Subject: [PATCH] tweak(stdlib): make sure all arguments of `min` and `max` have the same type this allows building for platforms that use STL versions of `min` and `max` instead of defining their own --- workspace/__lib__/xod/core/pad-with-zeroes/patch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspace/__lib__/xod/core/pad-with-zeroes/patch.cpp b/workspace/__lib__/xod/core/pad-with-zeroes/patch.cpp index 02567275..4a5462c8 100644 --- a/workspace/__lib__/xod/core/pad-with-zeroes/patch.cpp +++ b/workspace/__lib__/xod/core/pad-with-zeroes/patch.cpp @@ -13,7 +13,7 @@ void evaluate(Context ctx) { auto state = getState(ctx); auto num = (getValue(ctx) == 0) ? 0 : abs(getValue(ctx)); - int8_t lenFull = (getValue(ctx) < 0) ? 0 : min(15, getValue(ctx)); + int8_t lenFull = (getValue(ctx) < 0) ? 0 : min((Number)15, getValue(ctx)); char strNum[16]; dtostrf(num, 0, 0, strNum);