projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1df564
)
(quotearg_n_options): Declare n1 to be of type
author
Jim Meyering
<jim@meyering.net>
Sat, 16 Jan 1999 15:55:20 +0000
(15:55 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sat, 16 Jan 1999 15:55:20 +0000
(15:55 +0000)
unsigned int, not just int.
lib/quotearg.c
patch
|
blob
|
history
diff --git
a/lib/quotearg.c
b/lib/quotearg.c
index e1a6f9356ff694cca40941674d001027c05ace8a..90d0556d4b3795970be6d3b9da0913a6fea1bd89 100644
(file)
--- 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 ();