summaryrefslogtreecommitdiff
path: root/src/lib/evil
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2015-08-20 15:33:06 +0900
committerChunEon Park <hermet@hermet.pe.kr>2015-08-20 15:33:06 +0900
commit6a7e595bf6bad42c278ec818b1e20d691072291e (patch)
tree2053d6934c7a76bf9ce6a993e370e510d3608238 /src/lib/evil
parent024812c1a76286991f292c3191936778ec219ff8 (diff)
evil: fix warnings.
correct data size for 32/64 compatibility.
Diffstat (limited to 'src/lib/evil')
-rw-r--r--src/lib/evil/evil_time.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/evil/evil_time.c b/src/lib/evil/evil_time.c
index 6964654217..1c06ecb250 100644
--- a/src/lib/evil/evil_time.c
+++ b/src/lib/evil/evil_time.c
@@ -310,7 +310,11 @@ strptime(const char *buf, const char *fmt, struct tm *tm)
310 continue; 310 continue;
311 311
312#ifndef TIME_MAX 312#ifndef TIME_MAX
313# define TIME_MAX INT64_MAX 313# if INTPTR_MAX == 0xffffffffffffffff
314# define TIME_MAX INT64_MAX
315# else
316# define TIME_MAX INT32_MAX
317# endif
314#endif 318#endif
315 case 's': /* seconds since the epoch */ 319 case 's': /* seconds since the epoch */
316 { 320 {
@@ -331,7 +335,7 @@ strptime(const char *buf, const char *fmt, struct tm *tm)
331 } while ((sse * 10 <= TIME_MAX) && 335 } while ((sse * 10 <= TIME_MAX) &&
332 rulim && *bp >= '0' && *bp <= '9'); 336 rulim && *bp >= '0' && *bp <= '9');
333 337
334 if (sse < 0 || (__int64)sse > TIME_MAX) 338 if (sse < 0 || sse > TIME_MAX)
335 { 339 {
336 bp = NULL; 340 bp = NULL;
337 continue; 341 continue;