]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 15 Dec 2014 11:07:08 +0000 (11:07 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 15 Dec 2014 11:07:08 +0000 (11:07 +0000)
coders/pnm.c

index e6290aaf006e3b2fa81a037de2f1e5a12f6a3346..94de09c278e497d85f494a761ee9132c8ab45cc4 100644 (file)
@@ -205,7 +205,7 @@ static unsigned int PNMInteger(Image *image,const unsigned int base,
     Evaluate number.
   */
   value=0;
-  do
+  while (isdigit(c) != 0) {
   {
     if (value > (unsigned int) (INT_MAX/10))
       break;
@@ -216,7 +216,7 @@ static unsigned int PNMInteger(Image *image,const unsigned int base,
     c=ReadBlobByte(image);
     if (c == EOF)
       return(0);
-  } while (isdigit(c) != 0);
+  }
   return(value);
 }