Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 56640 invoked from network); 13 Sep 2007 08:15:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Sep 2007 08:15:21 -0000 Received: (qmail 34426 invoked by uid 500); 13 Sep 2007 08:15:14 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 34377 invoked by uid 500); 13 Sep 2007 08:15:13 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 34366 invoked by uid 99); 13 Sep 2007 08:15:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2007 01:15:13 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jorton@redhat.com designates 66.187.233.31 as permitted sender) Received: from [66.187.233.31] (HELO mx1.redhat.com) (66.187.233.31) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2007 08:16:51 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l8D8EmLn021982 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 13 Sep 2007 04:14:48 -0400 Received: from radish.cambridge.redhat.com (radish.cambridge.redhat.com [172.16.18.90]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l8D8ElLt006068; Thu, 13 Sep 2007 04:14:47 -0400 Received: from localhost.localdomain ([127.0.0.1] helo=radish.cambridge.redhat.com) by radish.cambridge.redhat.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.62) (envelope-from ) id 1IVjqZ-00009W-59; Thu, 13 Sep 2007 09:14:47 +0100 Received: (from jorton@localhost) by radish.cambridge.redhat.com (8.13.8/8.13.8/Submit) id l8D8EkWG000589; Thu, 13 Sep 2007 09:14:46 +0100 Date: Thu, 13 Sep 2007 09:14:46 +0100 From: Joe Orton To: Bojan Smojver Cc: APR Development List Subject: Re: Problems with testdate Message-ID: <20070913081446.GB309@redhat.com> Mail-Followup-To: Bojan Smojver , APR Development List References: <1189397383.22304.93.camel@shrek.rexursive.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1189397383.22304.93.camel@shrek.rexursive.com> User-Agent: Mutt/1.4.2.1i Organization: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in UK and Wales under Company Registration No. 03798903 Directors: Michael Cunningham (USA), Brendan Lane (Ireland), Matt Parson (USA), Charlie Peters (USA) X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Sep 10, 2007 at 02:09:43PM +1000, Bojan Smojver wrote: > Just bumped into this today, but it seems that in function > gm_timestr_822() of testdate.c, we are stuffing a 64-bit value > (apr_time_t) into something may be a lot shorter (time_t). So, errors > start occurring and test fails (Fedora 7, i686). I was thinking that we > should patch the test along the lines of the attached. It looks like the range of the test is supposed to be limited by that of a 32-bit time_t, given the range of dates in year2secs. If you make that array simply an array of time_t or apr_int32_t, and drop the INT64_C() casts, does it work? joe