projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
165e561
)
(get_format_width): Add cast to avoid
author
Jim Meyering
<jim@meyering.net>
Sun, 15 Sep 2002 07:23:08 +0000
(07:23 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 15 Sep 2002 07:23:08 +0000
(07:23 +0000)
warning about `signed and unsigned type in conditional expression'.
src/csplit.c
patch
|
blob
|
history
diff --git
a/src/csplit.c
b/src/csplit.c
index f8c179368eabdb2502d5ecbb29d43191df4f6d1a..df8546d7a4c3b60bb9a29d4ab56aecfd636e6125 100644
(file)
--- a/
src/csplit.c
+++ b/
src/csplit.c
@@
-1249,7
+1249,7
@@
get_format_width (char **format_ptr)
allow for enough octal digits to represent the value of LONG_MAX. */
count = ((*format_ptr == start)
? bytes_to_octal_digits[sizeof (long)]
- : atoi (start));
+ :
(unsigned)
atoi (start));
**format_ptr = ch_save;
return count;
}