From: Ben Harris Date: Mon, 16 Dec 2024 21:40:36 +0000 (+0000) Subject: Change parameters of moveto() and lineto() to signed X-Git-Tag: bedstead-3.251~69 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=61967c8094ecd06f86cfb5a552a9e7da0cd9b8a5;p=bedstead.git 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. --- 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++];