diff options
author | dzwdz | 2022-08-12 15:21:59 +0200 |
---|---|---|
committer | dzwdz | 2022-08-12 15:21:59 +0200 |
commit | 55ce6808cd99ecbb06bd9b0fac181ed2c3bf15ff (patch) | |
tree | 2aae9e401d6fc963e106588795666cd8af07bbb4 /src/user/app/dvd/dvd.c | |
parent | 3fa9fee167b9e6f070aba9a1cec1ce69531d9601 (diff) |
fix some minor warnings
Diffstat (limited to 'src/user/app/dvd/dvd.c')
-rw-r--r-- | src/user/app/dvd/dvd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/user/app/dvd/dvd.c b/src/user/app/dvd/dvd.c index ed9778c..f880782 100644 --- a/src/user/app/dvd/dvd.c +++ b/src/user/app/dvd/dvd.c @@ -30,8 +30,8 @@ int main(void) { uint32_t col = 0x800000; for (;;) { - if (x + dx < 0 || x + dx + w >= fb.width ) dx *= -1; - if (y + dy < 0 || y + dy + h >= fb.height) dy *= -1; + if (x + dx < 0 || (size_t)(x + dx + w) >= fb.width) dx *= -1; + if (y + dy < 0 || (size_t)(y + dy + h) >= fb.height) dy *= -1; x += dx; y += dy; draw_rect(x, y, w, h, col++); |