diff options
author | Karl Berry <karl@freefriends.org> | 2021-01-02 22:46:39 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-01-02 22:46:39 +0000 |
commit | 1c989d83c6898cc7b0877926066456e3787ff167 (patch) | |
tree | e06bf660b44ce80b4040525d438863d020d4d846 /Build | |
parent | 891242fb9951c3865e772207e0d0c5fd6cc15732 (diff) |
try isfinite (C99) instead of finite (BSD)
git-svn-id: svn://tug.org/texlive/trunk@57303 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/luafontloader/fontforge/fontforge/psread.c | 6 | ||||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/luafontloader/fontforge/fontforge/splinerefigure.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/luatexdir/luafontloader/fontforge/fontforge/psread.c b/Build/source/texk/web2c/luatexdir/luafontloader/fontforge/fontforge/psread.c index b54cbac638d..96cf5c30d4c 100644 --- a/Build/source/texk/web2c/luatexdir/luafontloader/fontforge/fontforge/psread.c +++ b/Build/source/texk/web2c/luatexdir/luafontloader/fontforge/fontforge/psread.c @@ -531,7 +531,7 @@ return( pt_number ); } } 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,14 +677,14 @@ return( sp ); } 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; 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; diff --git a/Build/source/texk/web2c/luatexdir/luafontloader/fontforge/fontforge/splinerefigure.c b/Build/source/texk/web2c/luatexdir/luafontloader/fontforge/fontforge/splinerefigure.c index b651a241960..9d7694de739 100644 --- a/Build/source/texk/web2c/luatexdir/luafontloader/fontforge/fontforge/splinerefigure.c +++ b/Build/source/texk/web2c/luatexdir/luafontloader/fontforge/fontforge/splinerefigure.c @@ -75,7 +75,7 @@ void SplineRefigure3(Spline *spline) { 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; |