projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43f4e81
)
(posix_time_parse): Add cast to avoid warning about
author
Jim Meyering
<jim@meyering.net>
Sun, 9 Dec 2001 22:56:16 +0000
(22:56 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 9 Dec 2001 22:56:16 +0000
(22:56 +0000)
`signed and unsigned type in conditional expression'.
lib/posixtm.c
patch
|
blob
|
history
diff --git
a/lib/posixtm.c
b/lib/posixtm.c
index d8ac99bf290d7a1b986de994c2e4607646c1da4c..cbeca6f21158b4be6bc3a5d0119f16443eeaaf6a 100644
(file)
--- 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)