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:
parent
fbe191d4f0
commit
d55dd73e44
|
@ -148,11 +148,11 @@ protected:
|
||||||
const String _uri;
|
const String _uri;
|
||||||
WebRequestMethodComposite _method;
|
WebRequestMethodComposite _method;
|
||||||
ArJsonRequestHandlerFunction _onRequest;
|
ArJsonRequestHandlerFunction _onRequest;
|
||||||
int _contentLength;
|
size_t _contentLength;
|
||||||
#ifndef ARDUINOJSON_5_COMPATIBILITY
|
#ifndef ARDUINOJSON_5_COMPATIBILITY
|
||||||
const size_t maxJsonBufferSize;
|
const size_t maxJsonBufferSize;
|
||||||
#endif
|
#endif
|
||||||
int _maxContentLength;
|
size_t _maxContentLength;
|
||||||
public:
|
public:
|
||||||
#ifdef ARDUINOJSON_5_COMPATIBILITY
|
#ifdef ARDUINOJSON_5_COMPATIBILITY
|
||||||
AsyncCallbackJsonWebHandler(const String& uri, ArJsonRequestHandlerFunction onRequest)
|
AsyncCallbackJsonWebHandler(const String& uri, ArJsonRequestHandlerFunction onRequest)
|
||||||
|
|
Loading…
Reference in New Issue