From 61967c8094ecd06f86cfb5a552a9e7da0cd9b8a5 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 16 Dec 2024 21:40:36 +0000 Subject: [PATCH] Change parameters of moveto() and lineto() to signed The corresponding members of struct vec are signed, as are most of the arguments passed to the functions, so it's silly that the parameters themselves are unsigned. This takes the number of warnings under clang -Weverything down from 126 to 30. This doesn't cause any change to the output TTX files. --- bedstead.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bedstead.c b/bedstead.c index 6a791ef..200d69f 100644 --- a/bedstead.c +++ b/bedstead.c @@ -3702,7 +3702,7 @@ clearpath(void) } static void -moveto(unsigned x, unsigned y) +moveto(int x, int y) { struct point *p = &points[nextpoint++]; @@ -3711,7 +3711,7 @@ moveto(unsigned x, unsigned y) } static void -lineto(unsigned x, unsigned y) +lineto(int x, int y) { struct point *p = &points[nextpoint++]; -- 2.30.2