From 162fa965ee8474d9c2bde0d78289c57d101a9430 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Fri, 26 Jun 2020 06:07:36 +0200 Subject: [PATCH] AsyncSocket::getBufferedAmount should be unsigned --- src/AsyncSocket.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AsyncSocket.h b/src/AsyncSocket.h index 44bed21..998f253 100644 --- a/src/AsyncSocket.h +++ b/src/AsyncSocket.h @@ -96,8 +96,8 @@ protected: } /* Returns the user space backpressure. */ - int getBufferedAmount() { - return (int) getAsyncSocketData()->buffer.size(); + unsigned int getBufferedAmount() { + return (unsigned int) getAsyncSocketData()->buffer.size(); } /* Returns the text representation of an IPv4 or IPv6 address */