mbed library sources. Supersedes mbed-src. Fixed broken STM32F1xx RTC on rtc_api.c
Dependents: Nucleo_F103RB_RTC_battery_bkup_pwr_off_okay
Fork of mbed-dev by
Diff: drivers/CAN.cpp
- Revision:
- 169:e3b6fe271b81
- Parent:
- 167:e84263d55307
- Child:
- 174:b96e65c34a4d
diff -r 9672193075cf -r e3b6fe271b81 drivers/CAN.cpp --- a/drivers/CAN.cpp Thu Jul 06 15:42:05 2017 +0100 +++ b/drivers/CAN.cpp Wed Jul 19 17:31:21 2017 +0100 @@ -26,7 +26,7 @@ CAN::CAN(PinName rd, PinName td) : _can(), _irq() { // No lock needed in constructor - for (int i = 0; i < sizeof _irq / sizeof _irq[0]; i++) { + for (size_t i = 0; i < sizeof _irq / sizeof _irq[0]; i++) { _irq[i] = callback(donothing); } @@ -37,7 +37,7 @@ CAN::CAN(PinName rd, PinName td, int hz) : _can(), _irq() { // No lock needed in constructor - for (int i = 0; i < sizeof _irq / sizeof _irq[0]; i++) { + for (size_t i = 0; i < sizeof _irq / sizeof _irq[0]; i++) { _irq[i].attach(donothing); }