diff options
author | Jim Meyering <jim@meyering.net> | 2001-12-09 22:56:16 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-12-09 22:56:16 +0000 |
commit | 0b072ba82c2a5129480fb5edf1aa877f8e43f46b (patch) | |
tree | a3e35930d63625d01783622cf0549ce74383d5f9 /lib | |
parent | 0928d7988913af974b8c3223d25bf0a91008d9a8 (diff) | |
download | coreutils-0b072ba82c2a5129480fb5edf1aa877f8e43f46b.tar.xz |
(posix_time_parse): Add cast to avoid warning about
`signed and unsigned type in conditional expression'.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/posixtm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/posixtm.c b/lib/posixtm.c index d8ac99bf2..cbeca6f21 100644 --- a/lib/posixtm.c +++ b/lib/posixtm.c @@ -125,7 +125,7 @@ posix_time_parse (const char *s, unsigned int syntax_bits) size_t s_len = strlen (s); size_t len = (((syntax_bits & PDS_SECONDS) && (dot = strchr (s, '.'))) - ? dot - s + ? (size_t) (dot - s) : s_len); if (len != 8 && len != 10 && len != 12) |