Summary:
This didn't get updated when the interface changed,
and the cast silenced the warning message. Stupid C.
Reviewed By: mcslee
Test Plan: Trust Chad Walters.
Revert Plan: ok
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665457
13f79535-47bb-0310-9956-
ffa450edef68
// Don't try to be clever with shifting buffers.
// If we have enough data, give a pointer to it,
// otherwise let the protcol use its slow path.
- if (readAvail() >= (int)len) {
+ if (readAvail() >= (int)*len) {
*len = (uint32_t)readAvail();
return urbuf_ + urpos_;
}