mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #2734 from tung7970/fix-mbedos
Fix signed/unsigned comparison warning in SerialBase.cpppull/2808/head
commit
97c2734b49
|
@ -31,7 +31,7 @@ SerialBase::SerialBase(PinName tx, PinName rx) :
|
|||
_serial(), _baud(9600) {
|
||||
// No lock needed in the 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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue