From: Dirk Lemstra Date: Fri, 28 Jun 2019 10:07:25 +0000 (+0200) Subject: Corrected return value. X-Git-Tag: 7.0.8-51~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=19f1598d63f735a39123eb365986dce19c50dee2;p=imagemagick Corrected return value. --- diff --git a/MagickCore/string-private.h b/MagickCore/string-private.h index c77644475..ef539dd7d 100644 --- a/MagickCore/string-private.h +++ b/MagickCore/string-private.h @@ -82,15 +82,14 @@ static inline MagickSizeType StringToMagickSizeType(const char *string, return((MagickSizeType) value); } -static inline size_t StringToSizeType(const char *string, - const double interval) +static inline size_t StringToSizeType(const char *string,const double interval) { double value; value=SiPrefixToDoubleInterval(string,interval); if (value >= (double) MagickULLConstant(~0)) - return((size_t) MagickULLConstant(~0)); + return(~0UL); return((size_t) value); }