Skip to content

Commit

Permalink
Fixed build errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Apr 7, 2022
1 parent a107b94 commit 4f3d080
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions coders/txt.c
Expand Up @@ -429,7 +429,7 @@ static Image *ReadTXTImage(const ImageInfo *image_info,ExceptionInfo *exception)

ssize_t
count = 0,
i = 0,
i,
type = 0;

unsigned long
Expand Down Expand Up @@ -502,7 +502,6 @@ static Image *ReadTXTImage(const ImageInfo *image_info,ExceptionInfo *exception)
*q;

ssize_t
i,
n;

/*
Expand All @@ -524,11 +523,11 @@ static Image *ReadTXTImage(const ImageInfo *image_info,ExceptionInfo *exception)
if (isdigit((int) ((unsigned char) *token)) != 0)
{
char
*q = (char *) NULL;
*end = (char *) NULL;

channels[n]=strtod(token,&q);
channels[n]=strtod(token,&end);
(void) GetNextToken(p,&p,MagickPathExtent,token);
if (*q == '%')
if (*end == '%')
channels[n]*=0.01*range;
n++;
}
Expand Down

0 comments on commit 4f3d080

Please sign in to comment.