diff --git a/src/mpdu.c b/src/mpdu.c index 2a9bc721..13c96156 100644 --- a/src/mpdu.c +++ b/src/mpdu.c @@ -46,7 +46,7 @@ static inline bool next_2bytes(const unsigned char *mpdu, int len, if (len < *offset + 2) return false; - *holder = L_LE16_TO_CPU(*((uint16_t *) mpdu + *offset)); + *holder = L_LE16_TO_CPU(*(uint16_t *)(mpdu + *offset)); *offset = *offset + 2; return true;