Skip to content

Commit 481bf84

Browse files
committed
Fixed signed/unsigned comparison warning
1 parent 4f2b798 commit 481bf84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/Wire/Wire.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ uint8_t arduino::MbedI2C::requestFrom(uint8_t address, size_t len, bool stopBit)
5959
if (ret != 0) {
6060
return 0;
6161
}
62-
for (int i=0; i<len; i++) {
62+
for (size_t i=0; i<len; i++) {
6363
rxBuffer.store_char(buf[i]);
6464
}
6565
return len;

0 commit comments

Comments
 (0)