aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/alan3/decode.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2019-06-25 22:37:19 -0700
committerPaul Gilbert2019-07-06 15:27:07 -0700
commit822cd6f16564a4fbb3436600894c144bf9e160d6 (patch)
tree876058f5583b98c9458c79b866b0b61746c5c380 /engines/glk/alan3/decode.cpp
parentcd7cf4141425e3e77b164d2dbcbae8de1eacb035 (diff)
downloadscummvm-rg350-822cd6f16564a4fbb3436600894c144bf9e160d6.tar.gz
scummvm-rg350-822cd6f16564a4fbb3436600894c144bf9e160d6.tar.bz2
scummvm-rg350-822cd6f16564a4fbb3436600894c144bf9e160d6.zip
GLK: ALAN3: Further warning fixes
Diffstat (limited to 'engines/glk/alan3/decode.cpp')
-rw-r--r--engines/glk/alan3/decode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/glk/alan3/decode.cpp b/engines/glk/alan3/decode.cpp
index c06d19aa48..233228bab2 100644
--- a/engines/glk/alan3/decode.cpp
+++ b/engines/glk/alan3/decode.cpp
@@ -93,7 +93,7 @@ int decodeChar(void)
f = (((long)(value-low)+1)*freq[0]-1)/range;
/* Find the symbol */
- for (symbol = 1; freq[symbol] > f; symbol++);
+ for (symbol = 1; (int)freq[symbol] > f; ++symbol) {}
high = low + range*freq[symbol-1]/freq[0]-1;
low = low + range*freq[symbol]/freq[0];