summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-02-25 22:47:34 +0000
committerKarl Berry <karl@freefriends.org>2021-02-25 22:47:34 +0000
commit462babfedcf66c30ea388c815156298a5c39ebf6 (patch)
tree5971470113fe3fd7170a580b46f81ef9ab862b73 /Build
parent5cb64616be8bf599f2f0243c1590d8f96cdcdf99 (diff)
compiler warning patch https://github.com/vectorgraphics/asymptote/commit/71d0b51bf94cf78cba1d893ce592fcfd9fc4e628.patch
git-svn-id: svn://tug.org/texlive/trunk@57926 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/utils/asymptote/mathop.h2
-rw-r--r--Build/source/utils/asymptote/path.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/Build/source/utils/asymptote/mathop.h b/Build/source/utils/asymptote/mathop.h
index 3c5da5b73cd..785f30d036b 100644
--- a/Build/source/utils/asymptote/mathop.h
+++ b/Build/source/utils/asymptote/mathop.h
@@ -104,7 +104,7 @@ struct divide<camp::triple> {
};
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)
diff --git a/Build/source/utils/asymptote/path.h b/Build/source/utils/asymptote/path.h
index 107c663a11d..75d55070935 100644
--- a/Build/source/utils/asymptote/path.h
+++ b/Build/source/utils/asymptote/path.h
@@ -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;
}