From: Christopher Dykes Date: Thu, 26 May 2016 17:08:13 +0000 (-0700) Subject: Fix doVecOperation in the SysUio portability header X-Git-Tag: 2016.07.26~203 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=46f41dca04ba21d77c95d909e8437102aaf2e23d;p=folly.git Fix doVecOperation in the SysUio portability header Summary: Apparently I failed to accurately transfer this particular change to fbcode, which meant it didn't actually compile on Windows. Reviewed By: yfeldblum Differential Revision: D3347976 fbshipit-source-id: 775682f10ab68672f6463ccc69a222ae0a52a097 --- diff --git a/folly/portability/SysUio.cpp b/folly/portability/SysUio.cpp index 556c8bd3..1a1dceb8 100755 --- a/folly/portability/SysUio.cpp +++ b/folly/portability/SysUio.cpp @@ -102,7 +102,7 @@ static ssize_t doVecOperation(int fd, const iovec* iov, int count) { curLen = iov[curIov].iov_len; } } else { - curBase += (void*)((char*)curBase + res); + curBase = (void*)((char*)curBase + res); curLen -= res; }