apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject svn commit: r574137 - /apr/apr-util/trunk/test/testdate.c
Date Mon, 10 Sep 2007 05:35:53 GMT
Author: bojan
Date: Sun Sep  9 22:35:53 2007
New Revision: 574137

URL: http://svn.apache.org/viewvc?rev=574137&view=rev
Log:
Revert change to testdate.c (commited by accident)

Modified:
    apr/apr-util/trunk/test/testdate.c

Modified: apr/apr-util/trunk/test/testdate.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/test/testdate.c?rev=574137&r1=574136&r2=574137&view=diff
==============================================================================
--- apr/apr-util/trunk/test/testdate.c (original)
+++ apr/apr-util/trunk/test/testdate.c Sun Sep  9 22:35:53 2007
@@ -161,14 +161,7 @@
         guess = lgc(guess);
         if (guess < 0)
             guess *= -1;
-
-        /* make sure it fits into time_t */
-        secstodate = (time_t)(guess + offset);
-
-        /* and is positive, taking into account we could be at _MIN */
-        if (secstodate < 0)
-            secstodate = -(secstodate + 1);
-
+        secstodate = guess + offset;
         gm_timestr_822(datestr, secstodate);
         secstodate *= APR_USEC_PER_SEC;
         newsecs = apr_date_parse_http(datestr);



Mime
View raw message