Summary: - On iOS, iovec::iov_len is a size_t, which is a uint32_t; convert
Test Plan:
- fbconfig -r folly && fbmake runtests
- Builds in fbobjc
Reviewed By: simpkins@fb.com
FB internal diff:
D1284931
do {
// some code can get confused by empty iovs, so skip them
if (p->length() > 0) {
- iov.push_back({(void*)p->data(), p->length()});
+ iov.push_back({(void*)p->data(), folly::to<size_t>(p->length())});
}
p = p->next();
} while (p != this);