@@ -2541,7 +2541,7 @@ inline std::shared_ptr<Context> Context::builtins() {
25412541 }));
25422542 globals.set (" namespace" , Value::callable ([=](const std::shared_ptr<Context> &, ArgumentsValue & args) {
25432543 auto ns = Value::object ();
2544- args.expectArgs (" namespace" , {0 , 0 }, {0 , std::numeric_limits<size_t >::max ()});
2544+ args.expectArgs (" namespace" , {0 , 0 }, {0 , ( std::numeric_limits<size_t >::max) ()});
25452545 for (auto & [name, value] : args.kwargs ) {
25462546 ns.set (name, value);
25472547 }
@@ -2596,7 +2596,7 @@ inline std::shared_ptr<Context> Context::builtins() {
25962596 };
25972597 // https://jinja.palletsprojects.com/en/3.0.x/templates/#jinja-filters.reject
25982598 globals.set (" reject" , Value::callable ([=](const std::shared_ptr<Context> & context, ArgumentsValue & args) {
2599- args.expectArgs (" reject" , {2 , std::numeric_limits<size_t >::max ()}, {0 , 0 });
2599+ args.expectArgs (" reject" , {2 , ( std::numeric_limits<size_t >::max) ()}, {0 , 0 });
26002600 auto & items = args.args [0 ];
26012601 auto filter_fn = context->get (args.args [1 ]);
26022602 if (filter_fn.is_null ()) throw std::runtime_error (" Undefined filter: " + args.args [1 ].dump ());
@@ -2667,7 +2667,7 @@ inline std::shared_ptr<Context> Context::builtins() {
26672667 return out;
26682668 }));
26692669 globals.set (" selectattr" , Value::callable ([=](const std::shared_ptr<Context> & context, ArgumentsValue & args) {
2670- args.expectArgs (" selectattr" , {2 , std::numeric_limits<size_t >::max ()}, {0 , 0 });
2670+ args.expectArgs (" selectattr" , {2 , ( std::numeric_limits<size_t >::max) ()}, {0 , 0 });
26712671 auto & items = args.args [0 ];
26722672 if (items.is_null ())
26732673 return Value::array ();
0 commit comments