texlive[57926] Build/source/utils/asymptote: compiler warning patch

commits+karl at tug.org commits+karl at tug.org
Thu Feb 25 23:47:34 CET 2021


Revision: 57926
          http://tug.org/svn/texlive?view=revision&revision=57926
Author:   karl
Date:     2021-02-25 23:47:34 +0100 (Thu, 25 Feb 2021)
Log Message:
-----------
compiler warning patch https://github.com/vectorgraphics/asymptote/commit/71d0b51bf94cf78cba1d893ce592fcfd9fc4e628.patch

Modified Paths:
--------------
    trunk/Build/source/utils/asymptote/mathop.h
    trunk/Build/source/utils/asymptote/path.h

Modified: trunk/Build/source/utils/asymptote/mathop.h
===================================================================
--- trunk/Build/source/utils/asymptote/mathop.h	2021-02-25 22:08:34 UTC (rev 57925)
+++ trunk/Build/source/utils/asymptote/mathop.h	2021-02-25 22:47:34 UTC (rev 57926)
@@ -104,7 +104,7 @@
 };
 
 inline bool validInt(double x) {
-  return x > Int_MIN-0.5 && x < Int_MAX+0.5;
+  return x > (double) Int_MIN-0.5 && x < (double) Int_MAX+0.5;
 }
 
 inline void checkInt(double x, size_t i)

Modified: trunk/Build/source/utils/asymptote/path.h
===================================================================
--- trunk/Build/source/utils/asymptote/path.h	2021-02-25 22:08:34 UTC (rev 57925)
+++ trunk/Build/source/utils/asymptote/path.h	2021-02-25 22:47:34 UTC (rev 57926)
@@ -19,8 +19,8 @@
 #include "bbox.h"
 
 inline double Intcap(double t) {
-  if(t <= Int_MIN) return Int_MIN;
-  if(t >= Int_MAX) return Int_MAX;
+  if(t <= (double) Int_MIN) return (double) Int_MIN;
+  if(t >= (double) Int_MAX) return (double) Int_MAX;
   return t;
 }
 



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