Previous 199869 Revisions Next

r21634 Wednesday 6th March, 2013 at 13:46:27 UTC by Phil Bennett
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)
[src/emu/cpu/tms34010]34010gfx.c
[src/mame/video]atarimo.c

trunk/src/emu/cpu/tms34010/34010gfx.c
r21633r21634
14601460      for (y = 0; y < dy; y++)
14611461      {
14621462         int left_partials, right_partials, full_words, bitshift, bitshift_alt;
1463         UINT16 srcword, srcmask, dstword, dstmask, pixel;
1463         UINT16 srcword, dstword, pixel;
1464         UINT32 srcmask, dstmask;
14641465         UINT32 swordaddr, dwordaddr;
14651466
14661467         /* determine the bit shift to get from source to dest */
r21633r21634
17191720      /* loop over rows */
17201721      for (y = 0; y < dy; y++)
17211722      {
1722         UINT16 srcword, srcmask, dstword, dstmask, pixel;
1723         UINT16 srcword, dstword, pixel;
1724         UINT32 srcmask, dstmask;
17231725         UINT32 swordaddr, dwordaddr;
17241726
17251727         /* use byte addresses each row */
trunk/src/mame/video/atarimo.c
r21633r21634
581581   /* initialize the rect list */
582582   rectlist->numrects = 0;
583583   rectlist->rect = mo->rectlist;
584   rect = &mo->rectlist[-1];
584   rect = &rectlist->rect[-1];
585585
586586   /* loop over all grid rows that intersect our cliprect */
587587   for (y = sy; y <= ey; y++)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team