Was using an unsigned int for a value that could be negative.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665680
13f79535-47bb-0310-9956-
ffa450edef68
// The number of bytes of data we have already.
uint32_t have = rBound_ - rBase_;
// The number of additional bytes we need from the underlying transport.
- uint32_t need = *len - have;
+ int32_t need = *len - have;
// The space from the start of the buffer to the end of our data.
uint32_t offset = rBound_ - rBuf_.get();
assert(need > 0);