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

Fix xmlXPathIsNaN broken by recent commit

This commit is contained in:
Nick Wellnhofer 2017-11-27 14:30:19 +01:00
parent c1002101f7
commit ddbb075b70

View File

@ -524,7 +524,7 @@ xmlXPathIsNaN(double val) {
int
xmlXPathIsInf(double val) {
#ifdef isinf
return isinf(val);
return isinf(val) ? (val > 0 ? 1 : -1) : 0;
#else
if (val >= HUGE_VAL)
return 1;