Fix compiler warnings for AsyncJson’s _contentLength/_maxContentLength vars (#439)

The type of _contentLength and _maxContentLength should both be unsigned
integer type size_t.
This commit is contained in:
buddydvd 2019-06-22 09:12:53 -07:00 committed by Me No Dev
parent fbe191d4f0
commit d55dd73e44
1 changed files with 2 additions and 2 deletions

View File

@ -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)