libretro / bnes-libretro

libretro implementation of bNES
GNU General Public License v3.0
11 stars 12 forks source link

Silence two -Wswitch_bool warnings #18

Closed orbea closed 7 years ago

orbea commented 7 years ago

Silences the following two warnings.

In file included from nes/cartridge/board/board.cpp:9:0,
                 from nes/cartridge/cartridge.cpp:7:
nes/cartridge/board/nes-fxrom.cpp: In member function ‘unsigned int NES::NES_FxROM::ciram_addr(unsigned int) const’:
nes/cartridge/board/nes-fxrom.cpp:37:16: warning: switch condition has type bool [-Wswitch-bool]
   switch(mirror) {
                ^
In file included from nes/cartridge/board/board.cpp:12:0,
                 from nes/cartridge/cartridge.cpp:7:
nes/cartridge/board/nes-pxrom.cpp: In member function ‘unsigned int NES::NES_PxROM::ciram_addr(unsigned int) const’:
nes/cartridge/board/nes-pxrom.cpp:43:16: warning: switch condition has type bool [-Wswitch-bool]
   switch(mirror) {
                ^