/*
- * Copyright 2017 Facebook, Inc.
+ * Copyright 2014-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
if (bytesRead > 0) {
if (movable) {
- ioBuf->append(bytesRead);
+ ioBuf->append(uint64_t(bytesRead));
readCallback_->readBufferAvailable(std::move(ioBuf));
} else {
- readCallback_->readDataAvailable(bytesRead);
+ readCallback_->readDataAvailable(size_t(bytesRead));
}
// Fall through and continue around the loop if the read
// completely filled the available buffer.
registerHandler(EventHandler::WRITE);
return;
}
- curQueue.trimStart(rc);
+ curQueue.trimStart(size_t(rc));
if (curQueue.empty()) {
auto cb = front.second;
queue_.pop_front();
}
}
-} // folly
+} // namespace folly