Skip to content

Commit af63b57

Browse files
authored
Merge pull request #4141 from tung7970/fix-mbedos
Fix mbed_board.c compiler warning
2 parents 7bd8c32 + 913febd commit af63b57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform/mbed_board.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,15 @@ void mbed_error_vfprintf(const char * format, va_list arg) {
8888
serial_init(&stdio_uart, STDIO_UART_TX, STDIO_UART_RX);
8989
}
9090
#if MBED_CONF_PLATFORM_STDIO_CONVERT_NEWLINES
91-
for (unsigned int i = 0; i < size; i++) {
91+
for (int i = 0; i < size; i++) {
9292
if (buffer[i] == '\n' && stdio_out_prev != '\r') {
9393
serial_putc(&stdio_uart, '\r');
9494
}
9595
serial_putc(&stdio_uart, buffer[i]);
9696
stdio_out_prev = buffer[i];
9797
}
9898
#else
99-
for (unsigned int i = 0; i < size; i++) {
99+
for (int i = 0; i < size; i++) {
100100
serial_putc(&stdio_uart, buffer[i]);
101101
}
102102
#endif

0 commit comments

Comments
 (0)