Previous 199869 Revisions Next

r32018 Tuesday 9th September, 2014 at 10:47:01 UTC by smf
fix for building with latest 32 bit tools. (nw)

src/mess/video/rm380z.c: In member function 'void rm380z_state::put_point(int, int, int, int)': src/mess/video/rm380z.c:17:2: error: assuming signed overflow does not occur when assuming that (X + c) >= X is always true [-Werror=strict-overflow]
 for (int r=y;r<(y+mx);r++)
 ^
cc1plus.exe: all warnings being treated as errors
makefile:922: recipe for target 'obj/windows/mess/video/rm380z.o' failed
[src/mess/video]rm380z.c

trunk/src/mess/video/rm380z.c
r32017r32018
1414   int mx=3;
1515   if (y==6) mx=4;
1616
17   for (int r=y;r<(y+mx);r++)
17   for (unsigned int r=y;r<(y+mx);r++)
1818   {
19      for (int c=x;c<(x+3);c++)
19      for (unsigned int c=x;c<(x+3);c++)
2020      {
2121         m_graphic_chars[charnum][c+(r*(RM380Z_CHDIMX+1))]=col;
2222      }

Previous 199869 Revisions Next


© 1997-2024 The MAME Team