Skip to content

Commit

Permalink
Fixing MSVC max collision (#1137)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenberry authored Jul 4, 2024
1 parent b09a575 commit f313faf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/glaze/json/schema.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,12 @@ namespace glz
if constexpr (std::integral<V>) {
s.type = {"integer"};
s.attributes.minimum = static_cast<std::int64_t>(std::numeric_limits<V>::lowest());
s.attributes.maximum = static_cast<std::uint64_t>(std::numeric_limits<V>::max());
s.attributes.maximum = static_cast<std::uint64_t>((std::numeric_limits<V>::max)());
}
else {
s.type = {"number"};
s.attributes.minimum = std::numeric_limits<V>::lowest();
s.attributes.maximum = std::numeric_limits<V>::max();
s.attributes.maximum = (std::numeric_limits<V>::max)();
}
}
};
Expand Down

0 comments on commit f313faf

Please sign in to comment.