From: Cristy Date: Sun, 28 Jul 2019 02:04:53 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.8-58~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f7ba0da4186ed61cd050d8178ca71132a1a879b;p=imagemagick ... --- diff --git a/coders/pnm.c b/coders/pnm.c index e828f7cac..726740111 100644 --- a/coders/pnm.c +++ b/coders/pnm.c @@ -345,7 +345,7 @@ static Image *ReadPNMImage(const ImageInfo *image_info,ExceptionInfo *exception) */ for (c=ReadBlobByte(image); c != EOF; c=ReadBlobByte(image)) { - while (isspace((int) ((unsigned char) c)) != 0) + while (isspace(c) != 0) c=ReadBlobByte(image); if (c == '#') { @@ -354,7 +354,7 @@ static Image *ReadPNMImage(const ImageInfo *image_info,ExceptionInfo *exception) */ c=PNMComment(image,&comment_info,exception); c=ReadBlobByte(image); - while (isspace((int) ((unsigned char) c)) != 0) + while (isspace(c) != 0) c=ReadBlobByte(image); } p=keyword; @@ -367,7 +367,7 @@ static Image *ReadPNMImage(const ImageInfo *image_info,ExceptionInfo *exception) *p='\0'; if (LocaleCompare(keyword,"endhdr") == 0) break; - while (isspace((int) ((unsigned char) c)) != 0) + while (isspace(c) != 0) c=ReadBlobByte(image); p=value; while (isalnum(c) || (c == '_'))