diff options
Diffstat (limited to 'graphics/asymptote/path.h')
-rw-r--r-- | graphics/asymptote/path.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/asymptote/path.h b/graphics/asymptote/path.h index 107c663a11..75d5507093 100644 --- a/graphics/asymptote/path.h +++ b/graphics/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; } |