From fd8fc4568b6dad40bf7892dd8f8cf857d1c58a33 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 16 Feb 2019 18:16:24 -0500 Subject: [PATCH] ... --- MagickCore/draw.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MagickCore/draw.c b/MagickCore/draw.c index b16711c89..2663d5ace 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -4979,10 +4979,10 @@ RestoreMSCWarning static inline double ConstrainCoordinate(double x) { - if (x < LONG_MIN) - return(LONG_MIN); - if (x > LONG_MAX) - return(LONG_MAX); + if (x < -SSIZE_MAX) + return(-SSIZE_MAX); + if (x > SSIZE_MAX) + return(SSIZE_MAX); return(x); } -- 2.40.0