Skip to content
Snippets Groups Projects
Commit db0558c1 authored by Tom Lane's avatar Tom Lane
Browse files

Use a more bulletproof test for whether finite() and isinf() are present.

It seems that recent gcc versions can optimize away calls to these functions
even when the functions do not exist on the platform, resulting in a bogus
positive result.  Avoid this by using a non-constant argument and ensuring
that the function result is not simply discarded.  Per report from
François Laupretre.
parent 9484e14c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment