mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-03 14:24:15 +01:00
Fixed: warning: suggest explicit braces to avoid ambiguous 'else'
This commit is contained in:
parent
38d5e916ca
commit
f3e7a3909d
@ -265,10 +265,10 @@ int Stream::findMulti( struct Stream::MultiTarget *targets, int tCount) {
|
|||||||
|
|
||||||
for (struct MultiTarget *t = targets; t < targets+tCount; ++t) {
|
for (struct MultiTarget *t = targets; t < targets+tCount; ++t) {
|
||||||
// the simple case is if we match, deal with that first.
|
// the simple case is if we match, deal with that first.
|
||||||
if (c == t->str[t->index])
|
if (c == t->str[t->index]) {
|
||||||
if (++t->index == t->len)
|
if (++t->index == t->len)
|
||||||
return t - targets;
|
return t - targets;
|
||||||
else
|
} else
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// if not we need to walk back and see if we could have matched further
|
// if not we need to walk back and see if we could have matched further
|
||||||
|
Loading…
Reference in New Issue
Block a user