You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bo...@apache.org on 2007/09/10 07:35:53 UTC

svn commit: r574137 - /apr/apr-util/trunk/test/testdate.c

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);