Commit a09f4080 authored by Harris Hancock's avatar Harris Hancock

Add necessary KJ_CPCAP for MSVC

parent 8fc1ce96
......@@ -122,7 +122,7 @@ private:
auto partPtr = part.asPtr();
parts.add(kj::mv(part));
return input.tryRead(partPtr.begin(), partPtr.size(), partPtr.size())
.then([this,partPtr,total](size_t amount) -> Promise<uint64_t> {
.then([this,KJ_CPCAP(partPtr),total](size_t amount) -> Promise<uint64_t> {
uint64_t newTotal = total + amount;
if (amount < partPtr.size()) {
return newTotal;
......
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