Re: Strange interval arithmetic - Mailing list pgsql-hackers

From Michael Fuhr
Subject Re: Strange interval arithmetic
Date
Msg-id 20051130231533.GA27780@winnie.fuhr.org
Whole thread Raw
In response to Re: Strange interval arithmetic  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On Wed, Nov 30, 2005 at 06:00:07PM -0500, Andrew Dunstan wrote:
> LONG_MIN/LONG_MAX might be the actual values provided, too, mightn't 
> they? checking for ERANGE seems like the only viable test.

Errno needs to be checked in any case for just that reason; the
question was whether checking *only* errno is sufficient to detect
an error.  According to the standard it is.

-- 
Michael Fuhr


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Strange interval arithmetic
Next
From: Michael Fuhr
Date:
Subject: Re: Strange interval arithmetic