GBA Video: Fix a format string warning
Jeffrey Pfau jeffrey@endrift.com
Sat, 22 Nov 2014 00:33:41 -0800
2 files changed,
2 insertions(+),
1 deletions(-)
M
src/gba/renderers/video-software.c
→
src/gba/renderers/video-software.c
@@ -1192,7 +1192,7 @@ } \
DRAW_BACKGROUND_MODE_0_TILE_PREFIX_ ## BPP (BLEND, OBJWIN) \ } \ if (VIDEO_CHECKS && UNLIKELY(&renderer->row[outX] != pixel)) { \ - GBALog(0, GBA_LOG_FATAL, "Background draw ended in the wrong place! Diff: %lx", &renderer->row[outX] - pixel); \ + GBALog(0, GBA_LOG_FATAL, "Background draw ended in the wrong place! Diff: %" PRIXPTR, &renderer->row[outX] - pixel); \ } \ if (VIDEO_CHECKS && UNLIKELY(outX > VIDEO_HORIZONTAL_PIXELS)) { \ GBALog(0, GBA_LOG_FATAL, "Out of bounds background draw occurred!"); \
M
src/util/common.h
→
src/util/common.h
@@ -3,6 +3,7 @@ #define COMMON_H
#include <ctype.h> #include <fcntl.h> +#include <inttypes.h> #include <limits.h> #include <math.h> #include <stdarg.h>