Skip to content

Commit c3b07a8

Browse files
committed
Try and work around msvc++ non-macro max resolution quirk
1 parent ce48584 commit c3b07a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/minja.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -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
}

0 commit comments

Comments
 (0)