Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

Commit d55dd73

Browse files
buddydvdme-no-dev
authored andcommitted
Fix compiler warnings for AsyncJson’s _contentLength/_maxContentLength vars (me-no-dev#439)
The type of _contentLength and _maxContentLength should both be unsigned integer type size_t.
1 parent fbe191d commit d55dd73

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/AsyncJson.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,11 @@ class AsyncCallbackJsonWebHandler: public AsyncWebHandler {
148148
const String _uri;
149149
WebRequestMethodComposite _method;
150150
ArJsonRequestHandlerFunction _onRequest;
151-
int _contentLength;
151+
size_t _contentLength;
152152
#ifndef ARDUINOJSON_5_COMPATIBILITY
153153
const size_t maxJsonBufferSize;
154154
#endif
155-
int _maxContentLength;
155+
size_t _maxContentLength;
156156
public:
157157
#ifdef ARDUINOJSON_5_COMPATIBILITY
158158
AsyncCallbackJsonWebHandler(const String& uri, ArJsonRequestHandlerFunction onRequest)

0 commit comments

Comments
 (0)