diff options
-rw-r--r-- | Build/source/utils/asymptote/mathop.h | 2 | ||||
-rw-r--r-- | Build/source/utils/asymptote/path.h | 4 |
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; } |