aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoost Peters2005-02-28 17:34:52 +0000
committerJoost Peters2005-02-28 17:34:52 +0000
commit991dbdf18c2c1b46c62e6127e8645490b8662275 (patch)
tree28ea64d7d005d27e78f96b69ad6d6a8f208bfc1a
parent58dc309969ff0cc36a86772ea8707f2af78909e2 (diff)
downloadscummvm-rg350-991dbdf18c2c1b46c62e6127e8645490b8662275.tar.gz
scummvm-rg350-991dbdf18c2c1b46c62e6127e8645490b8662275.tar.bz2
scummvm-rg350-991dbdf18c2c1b46c62e6127e8645490b8662275.zip
change division to right-shift
svn-id: r16962
-rw-r--r--sky/rnc_deco.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sky/rnc_deco.cpp b/sky/rnc_deco.cpp
index 24db371b1b..43cd82939d 100644
--- a/sky/rnc_deco.cpp
+++ b/sky/rnc_deco.cpp
@@ -50,10 +50,10 @@ void RncDecoder::initCrc() {
tmp1 = tmp2;
for (cnt = 8; cnt > 0; cnt--) {
if (tmp1 % 2) {
- tmp1 /= 2;
+ tmp1 >>= 1;
tmp1 ^= 0x0a001;
} else
- tmp1 /= 2;
+ tmp1 >>= 1;
}
_crcTable[tmp2] = tmp1;
}