From c5779c09fe857583834c5623e487ceb6e09c63b5 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 16 Jan 1999 15:55:20 +0000 Subject: [PATCH] (quotearg_n_options): Declare n1 to be of type unsigned int, not just int. --- lib/quotearg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/quotearg.c b/lib/quotearg.c index e1a6f9356f..90d0556d4b 100644 --- a/lib/quotearg.c +++ b/lib/quotearg.c @@ -313,7 +313,7 @@ quotearg_n_options (unsigned int n, char const *arg, if (nslots <= n) { - int n1 = n + 1; + unsigned int n1 = n + 1; size_t s = n1 * sizeof (struct slotvec); if (! (0 < n1 && n1 == s / sizeof (struct slotvec))) abort (); -- 2.30.2