mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 16:47:28 +01:00
Push "int i" into "for (int i = etc; etc; etc)"
This commit is contained in:
1 parent
16b51dd2a4
commit
d5075c7e94
23 files changed
+229
-370
No files matched your search
@@ -62,8 +62,7 @@ mimic_gif_decode(uint64_t* n_bytes_out,
|
||||
goto cleanup1;
|
||||
}
|
||||
|
||||
int i;
|
||||
for (i = 0; i < f->ImageCount; i++) {
|
||||
for (int i = 0; i < f->ImageCount; i++) {
|
||||
// Copy the pixel data from the GifFileType* f to the dst buffer, since the
|
||||
// former is free'd at the end of this function.
|
||||
//
|
||||
|
||||
@@ -64,8 +64,7 @@ mimic_png_decode(uint64_t* n_bytes_out,
|
||||
|
||||
spng_ctx* ctx = spng_ctx_new(0);
|
||||
|
||||
size_t i;
|
||||
for (i = 0; i < quirks_len; i++) {
|
||||
for (size_t i = 0; i < quirks_len; i++) {
|
||||
uint32_t q = quirks_ptr[i];
|
||||
if (q == WUFFS_BASE__QUIRK_IGNORE_CHECKSUM) {
|
||||
spng_set_crc_action(ctx, SPNG_CRC_USE, SPNG_CRC_USE);
|
||||
@@ -358,8 +357,7 @@ mimic_png_decode(uint64_t* n_bytes_out,
|
||||
goto cleanup0;
|
||||
}
|
||||
|
||||
size_t i;
|
||||
for (i = 0; i < quirks_len; i++) {
|
||||
for (size_t i = 0; i < quirks_len; i++) {
|
||||
uint32_t q = quirks_ptr[i];
|
||||
if (q == WUFFS_BASE__QUIRK_IGNORE_CHECKSUM) {
|
||||
// TODO: configure libpng to ignore Adler-32 and CRC-32 checksums.
|
||||
|
||||
Reference in new issue
Block a user