[trunk] Fix issue with & vs &&

Fixes issue 277
This commit is contained in:
Mathieu Malaterre 2014-03-14 14:46:40 +00:00
parent e8abf1fb25
commit de74605777
1 changed files with 1 additions and 1 deletions

View File

@ -1716,7 +1716,7 @@ static void read_pnm_header(FILE *reader, struct pnm_header *ph)
}
if(ph->depth < 1 || ph->depth > 4) return;
if(ph->width && ph->height && ph->depth & ph->maxval && ttype)
if(ph->width && ph->height && ph->depth && ph->maxval && ttype)
ph->ok = 1;
}
else