mirror of
https://github.com/holub/mame
synced 2025-07-02 16:49:22 +03:00
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)
This commit is contained in:
parent
fe5b7b2b96
commit
8928e5d768
@ -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 */
|
||||
|
@ -581,7 +581,7 @@ static void convert_dirty_grid_to_rects(atarimo_data *mo, const rectangle &clipr
|
||||
/* initialize the rect list */
|
||||
rectlist->numrects = 0;
|
||||
rectlist->rect = mo->rectlist;
|
||||
rect = &mo->rectlist[-1];
|
||||
rect = &rectlist->rect[-1];
|
||||
|
||||
/* loop over all grid rows that intersect our cliprect */
|
||||
for (y = sy; y <= ey; y++)
|
||||
|
Loading…
Reference in New Issue
Block a user