Merge pull request #2734 from tung7970/fix-mbedos

Fix signed/unsigned comparison warning in SerialBase.cpp
pull/2808/head
Sam Grove 2016-09-24 16:39:29 -05:00 committed by GitHub
commit 97c2734b49
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}