From fe080dc07e4a2072fa179e28644f0c94cbfa8dd9 Mon Sep 17 00:00:00 2001 From: arantius Date: Thu, 7 Sep 2017 15:02:46 -0400 Subject: [PATCH] Address compilation warning. (#209) Specifically: "warning: comparison between signed and unsigned integer expressions". Make `i` the same type as `len`, which it is frequently compared to. --- src/WebRequest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WebRequest.cpp b/src/WebRequest.cpp index 53af540..1a1d6d5 100644 --- a/src/WebRequest.cpp +++ b/src/WebRequest.cpp @@ -97,7 +97,7 @@ AsyncWebServerRequest::~AsyncWebServerRequest(){ } void AsyncWebServerRequest::_onData(void *buf, size_t len){ - int i = 0; + size_t i = 0; while (true) { if(_parseState < PARSE_REQ_BODY){