From 289439528d203112533022c0cd40918c9d023c7b Mon Sep 17 00:00:00 2001 From: MrWint Date: Sat, 25 May 2019 18:11:32 +0200 Subject: [PATCH] c++11 narrowing conversion warnings --- libgambatte/src/video/ppu.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libgambatte/src/video/ppu.cpp b/libgambatte/src/video/ppu.cpp index c1f10175f5..fde43224fb 100644 --- a/libgambatte/src/video/ppu.cpp +++ b/libgambatte/src/video/ppu.cpp @@ -105,9 +105,9 @@ enum { WIN_DRAW_START = 1, WIN_DRAW_STARTED = 2 }; enum { M2_DS_OFFSET = 3 }; enum { MAX_M3START_CYCLES = 80 }; -static inline unsigned weMasterCheckPriorToLyIncLineCycle(const bool cgb) { return 450 - cgb; } -static inline unsigned weMasterCheckAfterLyIncLineCycle(const bool cgb) { return 454 - cgb; } -static inline unsigned m3StartLineCycle(const bool /*cgb*/) { return 83; } +static inline int weMasterCheckPriorToLyIncLineCycle(const bool cgb) { return 450 - cgb; } +static inline int weMasterCheckAfterLyIncLineCycle(const bool cgb) { return 454 - cgb; } +static inline int m3StartLineCycle(const bool /*cgb*/) { return 83; } static inline void nextCall(const int cycles, const PPUState &state, PPUPriv &p) { const int c = p.cycles - cycles;