From e5e4442fc961f4673b89175921c4516e84dcafbd Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 30 Jan 2022 13:48:06 +0100 Subject: [PATCH] Fix compiler warnings --- src/utils/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/utils.cpp b/src/utils/utils.cpp index 9ebb415..ce1178b 100644 --- a/src/utils/utils.cpp +++ b/src/utils/utils.cpp @@ -22,7 +22,7 @@ void dumpHex(const void *data, size_t size) { if ((i + 1) % 16 == 0) { WHBLogPrintf("| %s ", ascii); if (i + 1 < size) { - DEBUG_FUNCTION_LINE("0x%08X (0x%04X); ", data + i + 1, i + 1); + DEBUG_FUNCTION_LINE("0x%08X (0x%04X); ", ((char*)data)[i + 1], i + 1); } } else if (i + 1 == size) { ascii[(i + 1) % 16] = '\0';