diff options
author | Torbjörn Andersson | 2008-04-23 17:39:13 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2008-04-23 17:39:13 +0000 |
commit | a643a8cc8a1f51e5b628f14be128b1cfa06a2818 (patch) | |
tree | 011091673a39b91c9b418f3b0d240fd6670e721b /engines/made | |
parent | b69ffa922aefeaa649a56a1ea8d9a0bd646db76c (diff) | |
download | scummvm-rg350-a643a8cc8a1f51e5b628f14be128b1cfa06a2818.tar.gz scummvm-rg350-a643a8cc8a1f51e5b628f14be128b1cfa06a2818.tar.bz2 scummvm-rg350-a643a8cc8a1f51e5b628f14be128b1cfa06a2818.zip |
Fixed warning about potentially undefined behaviour.
svn-id: r31667
Diffstat (limited to 'engines/made')
-rw-r--r-- | engines/made/redreader.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/made/redreader.cpp b/engines/made/redreader.cpp index 96ed2a4c15..a8694b26ec 100644 --- a/engines/made/redreader.cpp +++ b/engines/made/redreader.cpp @@ -288,7 +288,9 @@ void LzhDecompressor::make_table(uint nchar, byte bitlen[], uint tablebits, uint start[i] >>= jutbits; 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; if (i != (uint16)(1U << 16)) { k = 1U << tablebits; |