mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-20 00:41:12 +00:00
Fixed warning about potentially undefined behaviour.
svn-id: r31667
This commit is contained in:
parent
b69ffa922a
commit
a643a8cc8a
@ -288,7 +288,9 @@ void LzhDecompressor::make_table(uint nchar, byte bitlen[], uint tablebits, uint
|
|||||||
start[i] >>= jutbits;
|
start[i] >>= jutbits;
|
||||||
weight[i] = 1U << (tablebits - i);
|
weight[i] = 1U << (tablebits - i);
|
||||||
}
|
}
|
||||||
while (i <= 16) weight[i++] = 1U << (16 - i);
|
for (; i <= 16; i++) {
|
||||||
|
weight[i] = 1U << (16 - i);
|
||||||
|
}
|
||||||
i = start[tablebits + 1] >> jutbits;
|
i = start[tablebits + 1] >> jutbits;
|
||||||
if (i != (uint16)(1U << 16)) {
|
if (i != (uint16)(1U << 16)) {
|
||||||
k = 1U << tablebits;
|
k = 1U << tablebits;
|
||||||
|
Loading…
Reference in New Issue
Block a user