Skip to content

Commit 1b27373

Browse files
committed
WiFiSSLClient: fix Wsign-compare
1 parent 983e92b commit 1b27373

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/WiFiS3/src/WiFiSSLClient.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ int WiFiSSLClient::_read() {
148148
modem.read_using_size();
149149
if(modem.write(string(PROMPT(_SSLCLIENTRECEIVE)),res, "%s%d,%d\r\n" , CMD_WRITE(_SSLCLIENTRECEIVE), _sock, size)) {
150150
if(res.size() > 0) {
151-
for(int i = 0, rv = 0; i < size && i < res.size(); i++) {
151+
for(uint32_t i = 0, rv = 0; i < size && i < res.size(); i++) {
152152
rx_buffer->store((uint8_t)res[i]);
153153
rv++;
154154
}
@@ -185,7 +185,7 @@ int WiFiSSLClient::read(uint8_t *buf, size_t size) {
185185
read_if_needed(size);
186186
int rv = 0;
187187
bool go_on = true;
188-
for(int i = 0; i < size && go_on; i++) {
188+
for(size_t i = 0; i < size && go_on; i++) {
189189
bool is_read = false;
190190
*(buf+i) = rx_buffer->read(&is_read);
191191
if(is_read) {

0 commit comments

Comments
 (0)