t

Fork of mbed-dev by mbed official

Revision:
170:e3b6fe271b81
Parent:
168:e84263d55307
Child:
175: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);
     }