texlive[57303]

commits+karl at tug.org commits+karl at tug.org
Sat Jan 2 23:46:39 CET 2021


Revision: 57303
          http://tug.org/svn/texlive?view=revision&revision=57303
Author:   karl
Date:     2021-01-02 23:46:39 +0100 (Sat, 02 Jan 2021)
Log Message:
-----------
try isfinite (C99) instead of finite (BSD)

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/luatexdir/luafontloader/fontforge/fontforge/psread.c
    trunk/Build/source/texk/web2c/luatexdir/luafontloader/fontforge/fontforge/splinerefigure.c

Modified: trunk/Build/source/texk/web2c/luatexdir/luafontloader/fontforge/fontforge/psread.c
===================================================================
--- trunk/Build/source/texk/web2c/luatexdir/luafontloader/fontforge/fontforge/psread.c	2021-01-02 22:38:43 UTC (rev 57302)
+++ trunk/Build/source/texk/web2c/luatexdir/luafontloader/fontforge/fontforge/psread.c	2021-01-02 22:46:39 UTC (rev 57303)
@@ -531,7 +531,7 @@
 	    }
 	} else {
 	    *val = strtod(tokbuf,&end);
-	    if ( !finite(*val) ) {
+	    if ( !isfinite(*val) ) {
 /* GT: NaN is a concept in IEEE floating point which means "Not a Number" */
 /* GT: it is used to represent errors like 0/0 or sqrt(-1). */
 		LogError( _("Bad number, infinity or nan: %s\n"), tokbuf );
@@ -677,7 +677,7 @@
 }
 
 static void CheckMakeB(BasePoint *test, BasePoint *good) {
-    if ( !finite(test->x) || test->x>100000 || test->x<-100000 ) {
+    if ( !isfinite(test->x) || test->x>100000 || test->x<-100000 ) {
 	LogError( _("Value out of bounds in spline.\n") );
 	if ( good!=NULL )
 	    test->x = good->x;
@@ -684,7 +684,7 @@
 	else
 	    test->x = 0;
     }
-    if ( !finite(test->y) || test->y>100000 || test->y<-100000 ) {
+    if ( !isfinite(test->y) || test->y>100000 || test->y<-100000 ) {
 	LogError( _("Value out of bounds in spline.\n") );
 	if ( good!=NULL )
 	    test->y = good->y;

Modified: trunk/Build/source/texk/web2c/luatexdir/luafontloader/fontforge/fontforge/splinerefigure.c
===================================================================
--- trunk/Build/source/texk/web2c/luatexdir/luafontloader/fontforge/fontforge/splinerefigure.c	2021-01-02 22:38:43 UTC (rev 57302)
+++ trunk/Build/source/texk/web2c/luatexdir/luafontloader/fontforge/fontforge/splinerefigure.c	2021-01-02 22:46:39 UTC (rev 57303)
@@ -75,7 +75,7 @@
 	if ( ysp->a==0 && xsp->a==0 && ysp->b==0 && xsp->b==0 )
 	    spline->islinear = true;	/* This seems extremely unlikely... */
     }
-    if ( !finite(ysp->a) || !finite(xsp->a) || !finite(ysp->c) || !finite(xsp->c) || !finite(ysp->d) || !finite(xsp->d))
+    if ( !isfinite(ysp->a) || !isfinite(xsp->a) || !isfinite(ysp->c) || !isfinite(xsp->c) || !isfinite(ysp->d) || !isfinite(xsp->d))
 	IError("NaN value in spline creation");
     LinearApproxFree(spline->approx);
     spline->approx = NULL;



More information about the tex-live-commits mailing list.