Skip to content

Commit c811840

Browse files
authored
Merge pull request #791 from d-a-v/warningless
Some more warning removed
2 parents 93108f0 + d61f4d9 commit c811840

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lmic/hal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ void hal_pollPendingIRQs_helper();
173173
void hal_processPendingIRQs(void);
174174

175175
/// \brief check for any pending interrupts: stub if interrupts are enabled.
176-
static void inline hal_pollPendingIRQs(void)
176+
static inline void hal_pollPendingIRQs(void)
177177
{
178178
#if !defined(LMIC_USE_INTERRUPTS)
179179
hal_pollPendingIRQs_helper();

src/lmic/lmic_channelshuffle.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ int LMIC_findNextChannel(
108108
memcpy(pShuffleMask, pEnableMask, nEntries * sizeof(*pShuffleMask));
109109
nSet16 = sidewaysSum16(pShuffleMask, nEntries);
110110
} else {
111-
// don't try to skip the last channel becuase it can't be chosen.
111+
// don't try to skip the last channel because it can't be chosen.
112112
lastChannel = -1;
113113
}
114114

@@ -121,7 +121,7 @@ int LMIC_findNextChannel(
121121
// the last channel bit. Post condition: if we really clered a bit,
122122
// saveLastChannelVal will be non-zero.
123123
saveLastChannelVal = 0;
124-
if (nSet16 > 16 && lastChannel >= 0 && lastChannel <= nEntries * 16) {
124+
if (nSet16 > 16 && lastChannel >= 0 && lastChannel <= (int)(nEntries * 16)) {
125125
uint16_t const saveLastChannelMask = (1 << (lastChannel & 0xF));
126126

127127
saveLastChannelVal = pShuffleMask[lastChannel >> 4] & saveLastChannelMask;

0 commit comments

Comments
 (0)