mirror of
https://github.com/coreutils/coreutils.git
synced 2024-12-12 11:23:43 +08:00
(posix_time_parse): Add cast to avoid warning about
`signed and unsigned type in conditional expression'.
This commit is contained in:
parent
0928d79889
commit
0b072ba82c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user