aboutsummaryrefslogtreecommitdiff
path: root/sky
diff options
context:
space:
mode:
Diffstat (limited to 'sky')
-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;
}