aboutsummaryrefslogtreecommitdiff
path: root/fontconfig/src/fcrange.c
diff options
context:
space:
mode:
Diffstat (limited to 'fontconfig/src/fcrange.c')
-rw-r--r--fontconfig/src/fcrange.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fontconfig/src/fcrange.c b/fontconfig/src/fcrange.c
index 37cf06755..9b1b67b82 100644
--- a/fontconfig/src/fcrange.c
+++ b/fontconfig/src/fcrange.c
@@ -204,7 +204,7 @@ FcRangeHash (const FcRange *r)
{
FcRange c = FcRangeCanonicalize (r);
int b = (int) (c.u.d.begin * 100);
- int e = (int) (c.u.d.end * 100);
+ int e = FcDoubleCmpEQ (c.u.d.end, DBL_MAX) ? INT_MAX : (int) (c.u.d.end * 100);
return b ^ (b << 1) ^ (e << 9);
}