mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-26 22:38:30 +00:00
Fix MODE=optlinux and MODE=tiny builds
This commit is contained in:
parent
5660ec4741
commit
0602ff6bab
12 changed files with 75 additions and 36 deletions
3
third_party/stb/stb_image.c
vendored
3
third_party/stb/stb_image.c
vendored
|
@ -4211,9 +4211,12 @@ static int stbi__parse_png_file(stbi__png *z, int scan, int req_comp) {
|
|||
tc16[k] = (uint16_t)stbi__get16be(s); // copy the values as-is
|
||||
} else {
|
||||
for (k = 0; k < s->img_n; ++k)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstringop-overflow"
|
||||
tc[k] = (unsigned char)(stbi__get16be(s) & 255) *
|
||||
stbi__depth_scale_table[z->depth]; // non 8-bit images
|
||||
// will be larger
|
||||
#pragma GCC diagnostic pop
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue