diff options
author | 2013-03-06 13:46:27 +0000 | |
---|---|---|
committer | 2013-03-06 13:46:27 +0000 | |
commit | 8928e5d768b4c5e317f47cd5d4c707987d0aa77e (patch) | |
tree | 9328bb0152a5026c26ea404298beaf8ab66d932a /src/emu/cpu | |
parent | fe5b7b2b961f194af3314acf9343698637bfea2b (diff) |
Clang warning fixes: (nw)
src/mame/video/atarimo.c:584:10: warning: array index -1 is before the beginning of the array [-Warray-bounds]
src/emu/cpu/tms34010/34010gfx.c:1518:14: warning: shift count >=width of type [-Wshift-count-overflow]
(etc)
Diffstat (limited to 'src/emu/cpu')
-rw-r--r-- | src/emu/cpu/tms34010/34010gfx.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/emu/cpu/tms34010/34010gfx.c b/src/emu/cpu/tms34010/34010gfx.c index 214acecf5ac..b72ff5f63ea 100644 --- a/src/emu/cpu/tms34010/34010gfx.c +++ b/src/emu/cpu/tms34010/34010gfx.c @@ -1460,7 +1460,8 @@ if ((daddr & (BITS_PER_PIXEL - 1)) != 0) mame_printf_debug("PIXBLT_R%d with odd for (y = 0; y < dy; y++) { int left_partials, right_partials, full_words, bitshift, bitshift_alt; - UINT16 srcword, srcmask, dstword, dstmask, pixel; + UINT16 srcword, dstword, pixel; + UINT32 srcmask, dstmask; UINT32 swordaddr, dwordaddr; /* determine the bit shift to get from source to dest */ @@ -1719,7 +1720,8 @@ static void FUNCTION_NAME(pixblt_b)(tms34010_state *tms, int dst_is_linear) /* loop over rows */ for (y = 0; y < dy; y++) { - UINT16 srcword, srcmask, dstword, dstmask, pixel; + UINT16 srcword, dstword, pixel; + UINT32 srcmask, dstmask; UINT32 swordaddr, dwordaddr; /* use byte addresses each row */ |