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