diff mbox series

[fbtest,10/17] drawops: Make de in do_circle() unsigned

Message ID 20241215104508.191237-11-geert@linux-m68k.org (mailing list archive)
State Handled Elsewhere
Headers show
Series Export feature and large ellipses support | expand

Commit Message

Geert Uytterhoeven Dec. 15, 2024, 10:45 a.m. UTC
"de" is never negative, so it should be unsigned.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 drawops/generic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drawops/generic.c b/drawops/generic.c
index b3218f50d86c6d4c..5c068e10d28fbdfe 100644
--- a/drawops/generic.c
+++ b/drawops/generic.c
@@ -238,7 +238,7 @@  static void do_circle(u32 x, u32 y, u32 r, pixel_t pixel, draw_func_t draw_x,
     u32 x1 = 0;
     u32 y1 = r;
     int d = 1-r;
-    int de = 3;
+    unsigned int de = 3;
     int dse = -2*r+5;
 
     do {