From 63f7be9e01ca5e592dfdbe556b7507b1d6ceef9e Mon Sep 17 00:00:00 2001
From: Shlomi Fish <shlomif@shlomifish.org>
Date: Wed, 16 Sep 2020 13:02:41 +0300
Subject: [PATCH] silence signed comparison warning.

---
 fortune-mod/util/randstr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fortune-mod/util/randstr.c b/fortune-mod/util/randstr.c
index e64de6e..5d98446 100644
--- a/fortune-mod/util/randstr.c
+++ b/fortune-mod/util/randstr.c
@@ -124,7 +124,7 @@ static void getargs(char *av[])
 static void get_pos(STRFILE *fp)
 {
     pos = random() % fp->str_numstr;
-    if (++(pos) >= fp->str_numstr)
+    if (++(pos) >= (off_t)(fp->str_numstr))
         pos -= fp->str_numstr;
 }
 
-- 
2.40.0