mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Fix -Werror=conversion in decode_bzip2.wuffs
This commit is contained in:
1 parent
3e93ffe175
commit
f55274aaa7
2 files changed
+2
-2
No files matched your search
@@ -25910,7 +25910,7 @@ wuffs_bzip2__decoder__build_huffman_table(
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
}
|
||||
self->private_data.f_huffman_tables[a_which][v_i] = (v_child | (v_n_bits << 12));
|
||||
self->private_data.f_huffman_tables[a_which][v_i] = ((uint16_t)((v_child | (v_n_bits << 12))));
|
||||
v_i += 1;
|
||||
}
|
||||
return wuffs_base__make_empty_struct();
|
||||
|
||||
@@ -692,7 +692,7 @@ pri func decoder.build_huffman_table!(which: base.u32[..= 5]) {
|
||||
bits ~mod<<= 1
|
||||
n_bits += 1
|
||||
} endwhile
|
||||
this.huffman_tables[args.which][i] = child | (n_bits << 12)
|
||||
this.huffman_tables[args.which][i] = (child | (n_bits << 12)) as base.u16
|
||||
i += 1
|
||||
} endwhile
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user