Re: Solaris 8 regression test failure with 8.0.0beta5 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Solaris 8 regression test failure with 8.0.0beta5
Date
Msg-id 730.1101405111@sss.pgh.pa.us
Whole thread Raw
In response to Re: Solaris 8 regression test failure with 8.0.0beta5  (Greg Stark <gsstark@mit.edu>)
List pgsql-hackers
Greg Stark <gsstark@mit.edu> writes:
> Tom Lane <tgl@sss.pgh.pa.us> writes:

>> This query would invoke the following code in int4div:
>> 
>> if (arg2 == 0)

> I have a vague memory that IEEE floats have zero coming in two
> flavours, 0 and -0. I wonder if it's possible merely comparing against
> 0 isn't covering all the possible cases that can trigger a division by
> zero trap.

(a) This is an integer, not a float.

(b) The IEEE spec requires that 0 and -0 compare equal.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Explain output: wrong row count?
Next
From: Tom Lane
Date:
Subject: Re: problem installing 8.0.0beta5 on OS X 10.3