Skip to content

Commit 97c2734

Browse files
authored
Merge pull request #2734 from tung7970/fix-mbedos
Fix signed/unsigned comparison warning in SerialBase.cpp
2 parents 29b0551 + 59dcd3f commit 97c2734

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hal/common/SerialBase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ SerialBase::SerialBase(PinName tx, PinName rx) :
3131
_serial(), _baud(9600) {
3232
// No lock needed in the constructor
3333

34-
for (int i = 0; i < sizeof _irq / sizeof _irq[0]; i++) {
34+
for (size_t i = 0; i < sizeof _irq / sizeof _irq[0]; i++) {
3535
_irq[i].attach(donothing);
3636
}
3737

0 commit comments

Comments
 (0)