1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 18:56:39 +02:00

(posix_time_parse): Add cast to avoid warning about

`signed and unsigned type in conditional expression'.
This commit is contained in:
Jim Meyering
2001-12-09 22:56:16 +00:00
parent 0928d79889
commit 0b072ba82c

View File

@@ -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)