Commit 6de429bb authored by Matthew Maurer's avatar Matthew Maurer

Switch to kj constant

parent ed1e2c3b
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include <errno.h> #include <errno.h>
#include <climits>
namespace capnp { namespace capnp {
...@@ -173,8 +172,7 @@ bool MessageBuilder::isCanonical() { ...@@ -173,8 +172,7 @@ bool MessageBuilder::isCanonical() {
} }
const word* readHead = segment->getStartPtr() + 1; const word* readHead = segment->getStartPtr() + 1;
return _::PointerReader::getRoot(segment, nullptr, segment->getStartPtr(), return _::PointerReader::getRoot(segment, nullptr, segment->getStartPtr(), kj::maxValue)
INT_MAX)
.isCanonical(&readHead); .isCanonical(&readHead);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment