We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bd762e commit d61f4d9Copy full SHA for d61f4d9
src/lmic/lmic_channelshuffle.c
@@ -121,7 +121,7 @@ int LMIC_findNextChannel(
121
// the last channel bit. Post condition: if we really clered a bit,
122
// saveLastChannelVal will be non-zero.
123
saveLastChannelVal = 0;
124
- if (nSet16 > 16 && lastChannel >= 0 && lastChannel <= nEntries * 16) {
+ if (nSet16 > 16 && lastChannel >= 0 && lastChannel <= (int)(nEntries * 16)) {
125
uint16_t const saveLastChannelMask = (1 << (lastChannel & 0xF));
126
127
saveLastChannelVal = pShuffleMask[lastChannel >> 4] & saveLastChannelMask;
0 commit comments