hermet pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=6a7e595bf6bad42c278ec818b1e20d691072291e

commit 6a7e595bf6bad42c278ec818b1e20d691072291e
Author: ChunEon Park <her...@hermet.pe.kr>
Date:   Thu Aug 20 15:33:06 2015 +0900

    evil: fix warnings.
    
    correct data size for 32/64 compatibility.
---
 src/lib/evil/evil_time.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/lib/evil/evil_time.c b/src/lib/evil/evil_time.c
index 6964654..1c06ecb 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)
               continue;
 
 #ifndef TIME_MAX
-# define TIME_MAX      INT64_MAX
+# if INTPTR_MAX == 0xffffffffffffffff
+#  define TIME_MAX INT64_MAX
+# else
+#  define TIME_MAX INT32_MAX
+# endif
 #endif
            case 's':   /* seconds since the epoch */
              {
@@ -331,7 +335,7 @@ strptime(const char *buf, const char *fmt, struct tm *tm)
                   } while ((sse * 10 <= TIME_MAX) &&
                            rulim && *bp >= '0' && *bp <= '9');
 
-                if (sse < 0 || (__int64)sse > TIME_MAX)
+                if (sse < 0 || sse > TIME_MAX)
                   {
                      bp = NULL;
                      continue;

-- 


Reply via email to