summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2018-04-16 18:18:11 +0200
committerNick Wellnhofer <wellnhofer@aevum.de>2018-04-16 18:18:11 +0200
commitebe12882ee7e14fa6463bb07d7de5f5388f09573 (patch)
tree66234f2c0b66b5af2e8c39b258fd5039718e7386
parent7a1bd7f6497ac33a9023d556f6f47a48f01deac0 (diff)
downloadlibxml2-ebe12882ee7e14fa6463bb07d7de5f5388f09573.tar.gz
Fix inconsistency in xmlXPathIsInf
We don't use HUGE_VAL for INFINITY after the most recent fix.
-rw-r--r--xpath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xpath.c b/xpath.c
index 89fab588..bd093643 100644
--- a/xpath.c
+++ b/xpath.c
@@ -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