From 9f7ba0da4186ed61cd050d8178ca71132a1a879b Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 27 Jul 2019 22:04:53 -0400 Subject: [PATCH] ... --- coders/pnm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 == '_')) -- 2.40.0