From: cristy Date: Tue, 6 Sep 2011 20:36:15 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~7060 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=35abcb79d5b4d38a597579685d2f46420cb5e1c4;p=imagemagick --- diff --git a/MagickCore/geometry.c b/MagickCore/geometry.c index 4037d5c1d..d5ab4144b 100644 --- a/MagickCore/geometry.c +++ b/MagickCore/geometry.c @@ -777,7 +777,8 @@ MagickExport MagickStatusType ParseGeometry(const char *geometry, (void) CopyMagickString(p,p+1,MaxTextExtent); continue; } - switch ((int) *p) + c=(int) ((unsigned char) *p); + switch (c) { case '%': {