06a8f6badc
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
30 lines
735 B
Diff
30 lines
735 B
Diff
From ebe12882ee7e14fa6463bb07d7de5f5388f09573 Mon Sep 17 00:00:00 2001
|
|
From: Nick Wellnhofer <wellnhofer@aevum.de>
|
|
Date: Mon, 16 Apr 2018 18:18:11 +0200
|
|
Subject: [PATCH 03/13] Fix inconsistency in xmlXPathIsInf
|
|
|
|
We don't use HUGE_VAL for INFINITY after the most recent fix.
|
|
---
|
|
xpath.c | 4 ++--
|
|
1 file 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
|
|
--
|
|
2.18.0
|
|
|