all repos — mgba @ 279cc1027bb5da87de9925402e68ce51e025d05a

mGBA Game Boy Advance Emulator

GBA Video: Fix a format string warning
Jeffrey Pfau jeffrey@endrift.com
Sat, 22 Nov 2014 00:33:41 -0800
commit

279cc1027bb5da87de9925402e68ce51e025d05a

parent

942ae92c4e8896bac7e35836709d0996f73b6322

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/gba/renderers/video-software.csrc/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.hsrc/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>