1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-20 18:50:08 +03:00

Fix inconsistency in xmlXPathIsInf

We don't use HUGE_VAL for INFINITY after the most recent fix.
This commit is contained in:
Nick Wellnhofer 2018-04-16 18:18:11 +02:00
parent 7a1bd7f649
commit ebe12882ee

View File

@ -527,9 +527,9 @@ xmlXPathIsInf(double val) {
#ifdef isinf
return isinf(val) ? (val > 0 ? 1 : -1) : 0;
#else
if (val >= HUGE_VAL)
if (val >= INFINITY)
return 1;
if (val <= -HUGE_VAL)
if (val <= -INFINITY)
return -1;
return 0;
#endif