Fix dangling else warnings
This commit is contained in:
parent
a7c8694d69
commit
1a9be15c1e
@ -1723,11 +1723,12 @@ static int stbi__jpeg_decode_block_prog_ac(stbi__jpeg *j, short data[64], stbi__
|
|||||||
short *p = &data[stbi__jpeg_dezigzag[k]];
|
short *p = &data[stbi__jpeg_dezigzag[k]];
|
||||||
if (*p != 0)
|
if (*p != 0)
|
||||||
if (stbi__jpeg_get_bit(j))
|
if (stbi__jpeg_get_bit(j))
|
||||||
if ((*p & bit)==0)
|
if ((*p & bit)==0) {
|
||||||
if (*p > 0)
|
if (*p > 0)
|
||||||
*p += bit;
|
*p += bit;
|
||||||
else
|
else
|
||||||
*p -= bit;
|
*p -= bit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
k = j->spec_start;
|
k = j->spec_start;
|
||||||
@ -1759,11 +1760,12 @@ static int stbi__jpeg_decode_block_prog_ac(stbi__jpeg *j, short data[64], stbi__
|
|||||||
short *p = &data[stbi__jpeg_dezigzag[k]];
|
short *p = &data[stbi__jpeg_dezigzag[k]];
|
||||||
if (*p != 0) {
|
if (*p != 0) {
|
||||||
if (stbi__jpeg_get_bit(j))
|
if (stbi__jpeg_get_bit(j))
|
||||||
if ((*p & bit)==0)
|
if ((*p & bit)==0) {
|
||||||
if (*p > 0)
|
if (*p > 0)
|
||||||
*p += bit;
|
*p += bit;
|
||||||
else
|
else
|
||||||
*p -= bit;
|
*p -= bit;
|
||||||
|
}
|
||||||
++k;
|
++k;
|
||||||
} else {
|
} else {
|
||||||
if (r == 0) {
|
if (r == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user