Commit 24e82fad authored by David Renshaw's avatar David Renshaw

Fix build errors on MacOS: strtoull needs stdlib.h; size_t does not implictly convert to uint64_t

parent f35d902d
......@@ -23,6 +23,7 @@
#include <kj/debug.h>
#include <kj/parse/char.h>
#include <unordered_map>
#include <stdlib.h>
namespace kj {
......@@ -1458,7 +1459,7 @@ public:
inner.writeBodyData(kj::str(*length, "\r\n"));
auto lengthValue = *length;
return inner.pumpBodyFrom(input, *length)
.then([this,lengthValue](size_t actual) {
.then([this,lengthValue](uint64_t actual) {
if (actual < lengthValue) {
inner.abortBody();
KJ_FAIL_REQUIRE(
......
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