Fixed: comparison between signed and unsigned integer expressions

pull/7901/head
Deepika 2018-08-27 10:34:58 -05:00
parent b9ba27b3ee
commit 64d3bd8199
1 changed files with 1 additions and 1 deletions

View File

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