aboutsummaryrefslogtreecommitdiff
path: root/engines/made
diff options
context:
space:
mode:
authorTorbjörn Andersson2008-04-23 17:39:13 +0000
committerTorbjörn Andersson2008-04-23 17:39:13 +0000
commita643a8cc8a1f51e5b628f14be128b1cfa06a2818 (patch)
tree011091673a39b91c9b418f3b0d240fd6670e721b /engines/made
parentb69ffa922aefeaa649a56a1ea8d9a0bd646db76c (diff)
downloadscummvm-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.cpp4
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;