aboutsummaryrefslogtreecommitdiff
path: root/src/ootx_decoder.c
diff options
context:
space:
mode:
authorMichael Turvey <mwturvey@users.noreply.github.com>2018-01-15 22:43:02 -0700
committerGitHub <noreply@github.com>2018-01-15 22:43:02 -0700
commit7755de9d2af61834568737594e29352b47176c7f (patch)
tree0d9eea391f3b266bcb80c47131092e0dbf317600 /src/ootx_decoder.c
parent8be34f04a100defc9d1958aa4ce63ef02d19db69 (diff)
parentb2eb7569a8963917116c4520e15b17f0578a2509 (diff)
downloadlibsurvive-7755de9d2af61834568737594e29352b47176c7f.tar.gz
libsurvive-7755de9d2af61834568737594e29352b47176c7f.tar.bz2
Merge pull request #95 from mwturvey/SmallChange
Resolve warnings & remove survive.h dependency on redist
Diffstat (limited to 'src/ootx_decoder.c')
-rw-r--r--src/ootx_decoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ootx_decoder.c b/src/ootx_decoder.c
index f7a7938..7bf7d7e 100644
--- a/src/ootx_decoder.c
+++ b/src/ootx_decoder.c
@@ -44,7 +44,7 @@ void ootx_free_decoder_context(ootx_decoder_context *ctx) {
}
uint8_t ootx_decode_bit(uint32_t length) {
- uint8_t t = (length - 2750) / 500; //why 2750?
+ uint8_t t = (uint8_t)((length - 2750) / 500); //why 2750?
// return ((t & 0x02)>0)?0xFF:0x00; //easier if we need to bitshift right
return ((t & 0x02)>>1);
}