mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 15:09:19 +02:00
reformat: remove redundant 'else' keyword
This commit is contained in:
@@ -7612,10 +7612,12 @@ static int stbi__pnm_info(stbi__context *s, int *x, int *y, int *comp)
|
||||
maxv = stbi__pnm_getinteger(s, &c); // read max value
|
||||
if (maxv > 65535)
|
||||
return stbi__err("max value > 65535", "PPM image supports only 8-bit and 16-bit images");
|
||||
else if (maxv > 255)
|
||||
return 16;
|
||||
else
|
||||
return 8;
|
||||
{
|
||||
if (maxv > 255)
|
||||
return 16;
|
||||
return 8;
|
||||
}
|
||||
}
|
||||
|
||||
static int stbi__pnm_is16(stbi__context *s)
|
||||
|
||||
Reference in New Issue
Block a user