@@ -2541,7 +2541,7 @@ inline std::shared_ptr<Context> Context::builtins() {
2541
2541
}));
2542
2542
globals.set (" namespace" , Value::callable ([=](const std::shared_ptr<Context> &, ArgumentsValue & args) {
2543
2543
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) ()});
2545
2545
for (auto & [name, value] : args.kwargs ) {
2546
2546
ns.set (name, value);
2547
2547
}
@@ -2596,7 +2596,7 @@ inline std::shared_ptr<Context> Context::builtins() {
2596
2596
};
2597
2597
// https://jinja.palletsprojects.com/en/3.0.x/templates/#jinja-filters.reject
2598
2598
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 });
2600
2600
auto & items = args.args [0 ];
2601
2601
auto filter_fn = context->get (args.args [1 ]);
2602
2602
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() {
2667
2667
return out;
2668
2668
}));
2669
2669
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 });
2671
2671
auto & items = args.args [0 ];
2672
2672
if (items.is_null ())
2673
2673
return Value::array ();
0 commit comments