Fix a few warnings

This commit is contained in:
Alex Hultman
2019-12-26 16:45:23 +01:00
parent a969a3e53e
commit bdac60a177
5 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ protected:
int written = us_socket_write(SSL, (us_socket_t *) this, asyncSocketData->buffer.data(), asyncSocketData->buffer.length(), /*nextLength != 0 | */length);
/* On failure return, otherwise continue down the function */
if (written < asyncSocketData->buffer.length()) {
if ((unsigned int) written < asyncSocketData->buffer.length()) {
/* Update buffering (todo: we can do better here if we keep track of what happens to this guy later on) */
asyncSocketData->buffer = asyncSocketData->buffer.substr(written);