We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86faea2 commit d15a8bcCopy full SHA for d15a8bc
4 files changed
Nestopia.xcodeproj/project.pbxproj
@@ -2288,7 +2288,10 @@
2288
PRODUCT_BUNDLE_IDENTIFIER = "org.openemu.${PRODUCT_NAME:identifier}";
2289
PRODUCT_NAME = Nestopia;
2290
SKIP_INSTALL = YES;
2291
- WARNING_CFLAGS = "-Wno-switch-enum";
+ WARNING_CFLAGS = (
2292
+ "-Wno-switch-enum",
2293
+ "-Wno-c++11-narrowing",
2294
+ );
2295
WRAPPER_EXTENSION = oecoreplugin;
2296
};
2297
name = Debug;
@@ -2310,7 +2313,10 @@
2310
2313
2311
2314
2312
2315
2316
2317
2318
2319
2320
2321
2322
name = Release;
core/NstPpu.cpp
@@ -312,17 +312,17 @@ namespace Nes
312
{
313
const byte data[11] =
314
315
- static_cast<byte>(regs.ctrl[0]),
316
- static_cast<byte>(regs.ctrl[1]),
317
- static_cast<byte>(regs.status),
318
- static_cast<byte>(scroll.address & 0xFF),
319
- static_cast<byte>(scroll.address >> 8),
320
- static_cast<byte>(scroll.latch & 0xFF),
321
- static_cast<byte>(scroll.latch >> 8),
322
- static_cast<byte>(scroll.xFine | scroll.toggle << 3),
323
- static_cast<byte>(regs.oam),
324
- static_cast<byte>(io.buffer),
325
- static_cast<byte>(io.latch)
+ byte( regs.ctrl[0] ),
+ byte( regs.ctrl[1] ),
+ byte( regs.status ),
+ byte( scroll.address & 0xFF ),
+ byte( scroll.address >> 8 ),
+ byte( scroll.latch & 0xFF ),
+ byte( scroll.latch >> 8 ),
+ byte( scroll.xFine | scroll.toggle << 3 ),
+ byte( regs.oam ),
+ byte( io.buffer ),
+ byte( io.latch )
326
327
328
state.Begin( AsciiId<'R','E','G'>::V ).Write( data ).End();
core/input/NstInpTurboFile.cpp
@@ -65,9 +65,9 @@ namespace Nes
65
66
const byte data[3] =
67
68
- static_cast<byte>(pos & 0xFF),
69
- static_cast<byte>(pos >> 8),
70
- static_cast<byte>(count | (old << 1) | (out << 2))
+ byte( pos & 0xFF ),
+ byte( pos >> 8 ),
+ byte( count | (old << 1) | (out << 2) )
71
72
73
saver.Begin( AsciiId<'R','E','G'>::V ).Write( data ).End();
core/input/NstInpZapper.cpp
@@ -137,8 +137,8 @@ namespace Nes
137
138
const byte data[2] =
139
140
- static_cast<byte>(arcade ? shifter ? 0x1 : 0x3 : 0x0),
141
- static_cast<byte>(arcade ? stream : 0x00)
+ byte( arcade ? shifter ? 0x1 : 0x3 : 0x0 ),
+ byte( arcade ? stream : 0x00 )
142
143
144
saver.Begin( AsciiId<'Z','P'>::R(0,0,id) ).Write( data ).End();
0 commit comments