Commit fbdb6012 authored by Peter Griess's avatar Peter Griess Committed by Dave Watson

Fix type mismatch in IOBuf::getIov()

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
parent b215baa2
......@@ -882,7 +882,7 @@ folly::fbvector<struct iovec> IOBuf::getIov() const {
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);
......
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