Skip to content

Commit

Permalink
Try and work around msvc++ non-macro max resolution quirk
Browse files Browse the repository at this point in the history
  • Loading branch information
ochafik committed Dec 30, 2024
1 parent ce48584 commit c3b07a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/minja.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2541,7 +2541,7 @@ inline std::shared_ptr<Context> Context::builtins() {
}));
globals.set("namespace", Value::callable([=](const std::shared_ptr<Context> &, ArgumentsValue & args) {
auto ns = Value::object();
args.expectArgs("namespace", {0, 0}, {0, std::numeric_limits<size_t>::max()});
args.expectArgs("namespace", {0, 0}, {0, (std::numeric_limits<size_t>::max)()});
for (auto & [name, value] : args.kwargs) {
ns.set(name, value);
}
Expand Down

0 comments on commit c3b07a8

Please sign in to comment.