events that would be partially overwritten. If so, they must be "killed"\r
by replacing the user event and following data with NULL events (i.e.,\r
using a memset to zero).*/\r
- prvCheckDataToBeOverwrittenForMultiEntryEvents(noOfSlots);\r
+ prvCheckDataToBeOverwrittenForMultiEntryEvents((uint8_t)noOfSlots);\r
#endif\r
/* Copy the local buffer to the main buffer */\r
(void)memcpy(& RecorderDataPtr->eventData[RecorderDataPtr->nextFreeIndex * 4],\r
main USER_EVENT entry (Note: important that this is after the memcpy,\r
but within the critical section!)*/\r
RecorderDataPtr->eventData[RecorderDataPtr->nextFreeIndex * 4] =\r
- (uint8_t) USER_EVENT + noOfSlots - 1;\r
+ (uint8_t) ( USER_EVENT + noOfSlots - 1 );\r
\r
/* Update the main buffer event index (already checked that it fits in\r
the buffer, so no need to check for wrapping)*/\r