Commit 6972648a authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

CDG: fix warning

parent c16bb9c7
...@@ -329,8 +329,8 @@ static int DecodeScroll( decoder_sys_t *p_cdg, const uint8_t *p_data, int b_copy ...@@ -329,8 +329,8 @@ static int DecodeScroll( decoder_sys_t *p_cdg, const uint8_t *p_data, int b_copy
} }
else else
{ {
if( dy < 0 || dy >= CDG_SCREEN_HEIGHT || if( dy < 0 || (unsigned)dy >= CDG_SCREEN_HEIGHT ||
dx < 0 || dx >= CDG_SCREEN_WIDTH ) dx < 0 || (unsigned)dx >= CDG_SCREEN_WIDTH )
continue; continue;
} }
p_cdg->screen[dy*CDG_SCREEN_PITCH+dx] = copy[y*CDG_SCREEN_PITCH+x]; p_cdg->screen[dy*CDG_SCREEN_PITCH+dx] = copy[y*CDG_SCREEN_PITCH+x];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment