diff --git a/src/gba/renderers/video-software.c b/src/gba/renderers/video-software.c index ed82d40f5..fccef031b 100644 --- a/src/gba/renderers/video-software.c +++ b/src/gba/renderers/video-software.c @@ -1192,7 +1192,7 @@ static inline void _compositeNoBlendNoObjwin(struct GBAVideoSoftwareRenderer* re 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!"); \ diff --git a/src/util/common.h b/src/util/common.h index ba8bb138b..da429f7e6 100644 --- a/src/util/common.h +++ b/src/util/common.h @@ -3,6 +3,7 @@ #include #include +#include #include #include #include