aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-02-11 18:01:11 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-02-11 18:08:02 +0100
commit4b6c833949d82427bc83b06659ed6028f15aeccf (patch)
treef120bf4d0ccc0b975792fb5c8320d18e1b884c91 /src
parent1c0db53cc34b8137fc0f5647e40bb2594a1acece (diff)
downloaddabmod-4b6c833949d82427bc83b06659ed6028f15aeccf.tar.gz
dabmod-4b6c833949d82427bc83b06659ed6028f15aeccf.tar.bz2
dabmod-4b6c833949d82427bc83b06659ed6028f15aeccf.zip
fix compilation warning in ConvEncoder
Diffstat (limited to 'src')
-rw-r--r--src/ConvEncoder.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ConvEncoder.cpp b/src/ConvEncoder.cpp
index 52961fc..3245d30 100644
--- a/src/ConvEncoder.cpp
+++ b/src/ConvEncoder.cpp
@@ -101,10 +101,10 @@ int ConvEncoder::process(Buffer* const dataIn, Buffer* dataOut)
data <<= 1;
//PDEBUG("Memory: 0x%x\n", memory);
unsigned char poly[4] = {
- memory & 0x5b,
- memory & 0x79,
- memory & 0x65,
- memory & 0x5b
+ (unsigned char)(memory & 0x5b),
+ (unsigned char)(memory & 0x79),
+ (unsigned char)(memory & 0x65),
+ (unsigned char)(memory & 0x5b)
};
//PDEBUG("Polys: 0x%x, 0x%x, 0x%x, 0x%x\n", poly[0], poly[1], poly[2], poly[3]);
// For each poly
@@ -126,10 +126,10 @@ int ConvEncoder::process(Buffer* const dataIn, Buffer* dataOut)
memory >>= 1;
//PDEBUG("Memory: 0x%x\n", memory);
unsigned char poly[4] = {
- memory & 0x5b,
- memory & 0x79,
- memory & 0x65,
- memory & 0x5b
+ (unsigned char)(memory & 0x5b),
+ (unsigned char)(memory & 0x79),
+ (unsigned char)(memory & 0x65),
+ (unsigned char)(memory & 0x5b)
};
//PDEBUG("Polys: 0x%x, 0x%x, 0x%x, 0x%x\n", poly[0], poly[1], poly[2], poly[3]);
// For each poly