aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/alan2/decode.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2019-02-10 11:51:43 -0800
committerPaul Gilbert2019-02-10 11:52:30 -0800
commit22e5913f18f597aab343ca4555714a340d86d3c8 (patch)
tree99997e63ed157da9ab3742714f9aa9400a30631a /engines/glk/alan2/decode.cpp
parent60a30b904bb9edf15e7b21f1aa4741259de0461f (diff)
downloadscummvm-rg350-22e5913f18f597aab343ca4555714a340d86d3c8.tar.gz
scummvm-rg350-22e5913f18f597aab343ca4555714a340d86d3c8.tar.bz2
scummvm-rg350-22e5913f18f597aab343ca4555714a340d86d3c8.zip
GLK: ALAN2: Fix a bunch of comparison warnings
Diffstat (limited to 'engines/glk/alan2/decode.cpp')
-rw-r--r--engines/glk/alan2/decode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/glk/alan2/decode.cpp b/engines/glk/alan2/decode.cpp
index 3a93d1d3a8..58e814f97f 100644
--- a/engines/glk/alan2/decode.cpp
+++ b/engines/glk/alan2/decode.cpp
@@ -60,7 +60,7 @@ void Decode::startDecoding() {
int Decode::decodeChar() {
const long range = (long)(_high - _low) + 1;
- const int f = (((long)(_value - _low) + 1) * _freq[0] - 1) / range;
+ const uint f = (((long)(_value - _low) + 1) * _freq[0] - 1) / range;
int symbol;
// Find the symbol