Module Name: xsrc Committed By: christos Date: Sun Jan 22 20:47:13 UTC 2023
Modified Files: xsrc/external/mit/fontconfig/dist/src: fcmatch.c Log Message: deal with vax exponent limit To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 xsrc/external/mit/fontconfig/dist/src/fcmatch.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: xsrc/external/mit/fontconfig/dist/src/fcmatch.c diff -u xsrc/external/mit/fontconfig/dist/src/fcmatch.c:1.12 xsrc/external/mit/fontconfig/dist/src/fcmatch.c:1.13 --- xsrc/external/mit/fontconfig/dist/src/fcmatch.c:1.12 Thu Jan 19 01:14:18 2023 +++ xsrc/external/mit/fontconfig/dist/src/fcmatch.c Sun Jan 22 15:47:13 2023 @@ -26,6 +26,12 @@ #include <float.h> +#ifdef __vax__ +#define SENTINEL 1e38 +#else +#define SENTINEL 1e99 +#endif + static double FcCompareNumber (const FcValue *value1, const FcValue *value2, FcValue *bestValue) { @@ -536,8 +542,8 @@ FcCompareDataInit (FcPattern *pat, if (!FcHashTableFind (table, key, (void **)&e)) { e = malloc (sizeof (FamilyEntry)); - e->strong_value = 1e99; - e->weak_value = 1e99; + e->strong_value = SENTINEL; + e->weak_value = SENTINEL; FcHashTableAdd (table, (void *)key, e); } if (l->binding == FcValueBindingWeak) @@ -573,8 +579,8 @@ FcCompareFamilies (FcPattern *pat, assert (table != NULL); - strong_value = 1e99; - weak_value = 1e99; + strong_value = SENTINEL; + weak_value = SENTINEL; for (v2 = v2orig; v2; v2 = FcValueListNext(v2)) {