mirror of
https://github.com/nothings/stb.git
synced 2026-02-27 13:04:56 +00:00
Fix dangling else warnings
This commit is contained in:
@@ -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]];
|
||||
if (*p != 0)
|
||||
if (stbi__jpeg_get_bit(j))
|
||||
if ((*p & bit)==0)
|
||||
if ((*p & bit)==0) {
|
||||
if (*p > 0)
|
||||
*p += bit;
|
||||
else
|
||||
*p -= bit;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
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]];
|
||||
if (*p != 0) {
|
||||
if (stbi__jpeg_get_bit(j))
|
||||
if ((*p & bit)==0)
|
||||
if ((*p & bit)==0) {
|
||||
if (*p > 0)
|
||||
*p += bit;
|
||||
else
|
||||
*p -= bit;
|
||||
}
|
||||
++k;
|
||||
} else {
|
||||
if (r == 0) {
|
||||
|
||||
Reference in New Issue
Block a user