Skip to content
This repository was archived by the owner on Apr 16, 2021. It is now read-only.

Commit 3e6cae3

Browse files
committed
Fix warnings
1 parent 0dc7b3c commit 3e6cae3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cores/arduino/Serial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ size_t UART::write(const uint8_t* c, size_t len) {
9393
};
9494

9595
while ( p < end ) {
96-
size_t _len = end - p < WRITE_BUFF_SZ ? len % WRITE_BUFF_SZ : WRITE_BUFF_SZ;
96+
size_t _len = (size_t)(end - p) < WRITE_BUFF_SZ ? len % WRITE_BUFF_SZ : WRITE_BUFF_SZ;
9797
p += _write_block(p, _len);
9898
}
9999

variants/ARDUINO_NANO33BLE/variant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void initVariant() {
8989
#endif
9090
};
9191

92-
for (int i = 0; i < (sizeof(PWM)/sizeof(PWM[0])); i++) {
92+
for (unsigned int i = 0; i < (sizeof(PWM)/sizeof(PWM[0])); i++) {
9393
PWM[i]->ENABLE = 0;
9494
PWM[i]->PSEL.OUT[0] = 0xFFFFFFFFUL;
9595
}

0 commit comments

Comments
 (0)