Re: more C99 cleanup

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: more C99 cleanup
Date: 2025-11-25 05:46:53
Message-ID: 0e780010-66b2-48ac-81e4-46e980a60af7@eisentraut.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 21.11.25 17:10, Tom Lane wrote:
> I wrote:
>> I have a distinct recollection that this comment exists because we
>> found that some platforms had a hypot() that got that edge case wrong.
>> I don't object to proceeding on the assumption that they all conform
>> to spec by now, but please make sure there's at least one regression
>> test that will expose the problem if someplace doesn't. (A quick check
>> would be to hot-wire pg_hypot to do the wrong thing and see if any
>> existing test falls over. I think there is one, but let's verify.)
>
> Ah, there are several. It's not totally obvious perhaps where the
> cause is. I'll attach the diffs just for the archives' sake.

For clarification, does what you are showing mean that the regression
tests have enough coverage of the hypot() edge cases?

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Chao Li 2025-11-25 05:50:42 Re: Fixes bug in strlower_libc_sb()
Previous Message Bertrand Drouvot 2025-11-25 05:46:38 Re: Remove useless casting to the same type