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

Switch to kj constant

parent ed1e2c3b
......@@ -29,7 +29,6 @@
#include <string>
#include <vector>
#include <errno.h>
#include <climits>
namespace capnp {
......@@ -173,8 +172,7 @@ bool MessageBuilder::isCanonical() {
}
const word* readHead = segment->getStartPtr() + 1;
return _::PointerReader::getRoot(segment, nullptr, segment->getStartPtr(),
INT_MAX)
return _::PointerReader::getRoot(segment, nullptr, segment->getStartPtr(), kj::maxValue)
.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