"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Tracey Emery <tracey@traceyemery.net>
Subject:
Sparc build error fix
To:
gameoftrees@openbsd.org
Date:
Thu, 22 Jun 2023 12:39:28 -0600

Download raw body.

Thread
Just noticed this in a sparc build. ok?

-- 

Tracey Emery


Fix for cc1: warnings being treated as errors
/home/got/src/got/tog/tog.c: In function 'draw_tree_entries':
/home/got/src/got/tog/tog.c:7307: warning: comparisons like X<=Y<=Z
do = not have their mathematical meaning

M  tog/tog.c  |  1+  1-

1 file changed, 1 insertion(+), 1 deletion(-)

diff ba91039c1a0a3d55f4850e26c24730cbf4b5c239 eef262f386912f13169c1d74b77732bce4524cfd
commit - ba91039c1a0a3d55f4850e26c24730cbf4b5c239
commit + eef262f386912f13169c1d74b77732bce4524cfd
blob - 50c38cd6d28d539dcfa273bc3233bbda7f02fe7a
blob + f94aa18a4e4ab0a9b2df4a58ff12917a90b189c3
--- tog/tog.c
+++ tog/tog.c
@@ -7304,7 +7304,7 @@ draw_tree_entries(struct tog_view *view, const char *p
 				free(id_str);
 				return err;
 			}
-			for (i = 0; i < link_target[i] != '\0'; i++) {
+			for (i = 0; link_target[i] != '\0'; i++) {
 				if (!isprint((unsigned char)link_target[i]))
 					link_target[i] = '?';
 			}