Fix -Wsign-compare
[folly.git] / folly / io / async / AsyncSocket.cpp
index 69cfe867363373f7310f83321bf1ec4520e4c985..ceba521110dc6d8f9f3fcc45daec5a6415b43b2f 100644 (file)
@@ -1284,7 +1284,7 @@ void AsyncSocket::handleRead() noexcept {
       // completely filled the available buffer.
       // Note that readCallback_ may have been uninstalled or changed inside
       // readDataAvailable().
-      if (bytesRead < buflen) {
+      if (size_t(bytesRead) < buflen) {
         return;
       }
     } else if (bytesRead == READ_BLOCKING) {