diff options
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) |