fix some CodeQL warnings

This commit is contained in:
Philippe Teuwen committed 2022-02-16 20:28:38 +01:00
1 parent 8082cbbdcb
commit 623169fe02
15 files changed
+25 -27

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ static int CmdHelp(const char *Cmd);
// trace pointer
static uint8_t *gs_trace;
static long gs_traceLen = 0;
static uint16_t gs_traceLen = 0;
static bool is_last_record(uint16_t tracepos, uint16_t traceLen) {
return ((tracepos + TRACELOG_HDR_LEN) >= traceLen);