mirror of https://github.com/ARMmbed/mbed-os.git
Fixed: comparison between signed and unsigned integer expressions
parent
b9ba27b3ee
commit
64d3bd8199
|
@ -44,7 +44,7 @@ static void initialize(const ticker_data_t *ticker)
|
|||
|
||||
uint8_t frequency_shifts = 0;
|
||||
for (uint8_t i = 31; i > 0; --i) {
|
||||
if ((1 << i) == frequency) {
|
||||
if ((1U << i) == frequency) {
|
||||
frequency_shifts = i;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue