From d55dd73e44fc5bfa3c02e47c11d44ae88e97866b Mon Sep 17 00:00:00 2001 From: buddydvd Date: Sat, 22 Jun 2019 09:12:53 -0700 Subject: [PATCH] =?UTF-8?q?Fix=20compiler=20warnings=20for=20AsyncJson?= =?UTF-8?q?=E2=80=99s=20=5FcontentLength/=5FmaxContentLength=20vars=20(#43?= =?UTF-8?q?9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The type of _contentLength and _maxContentLength should both be unsigned integer type size_t. --- src/AsyncJson.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AsyncJson.h b/src/AsyncJson.h index 67dcdbe..b9631ea 100644 --- a/src/AsyncJson.h +++ b/src/AsyncJson.h @@ -148,11 +148,11 @@ protected: const String _uri; WebRequestMethodComposite _method; ArJsonRequestHandlerFunction _onRequest; - int _contentLength; + size_t _contentLength; #ifndef ARDUINOJSON_5_COMPATIBILITY const size_t maxJsonBufferSize; #endif - int _maxContentLength; + size_t _maxContentLength; public: #ifdef ARDUINOJSON_5_COMPATIBILITY AsyncCallbackJsonWebHandler(const String& uri, ArJsonRequestHandlerFunction onRequest)