Skip to content

Commit

Permalink
If merged, this commit will include limits header file for satisfying…
Browse files Browse the repository at this point in the history
… gcc's numeric_limits incomplete_type requirement.Interestingly, the build system on MacOS does not throw an error despite the lack of #include <limits.h> preprocessing directive.
  • Loading branch information
ckeshava committed Apr 24, 2023
1 parent a3e01e9 commit f579c1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ripple/basics/impl/mulDiv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
#include <ripple/basics/mulDiv.h>
#include <boost/multiprecision/cpp_int.hpp>
#include <limits>
#include <utility>
#include <optional>
#include <utility>

namespace ripple {

Expand Down
3 changes: 2 additions & 1 deletion src/ripple/basics/mulDiv.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
#define RIPPLE_BASICS_MULDIV_H_INCLUDED

#include <cstdint>
#include <utility>
#include <limits>
#include <optional>
#include <utility>

namespace ripple {
auto constexpr muldiv_max = std::numeric_limits<std::uint64_t>::max();
Expand Down

0 comments on commit f579c1a

Please sign in to comment.