From 4b6c833949d82427bc83b06659ed6028f15aeccf Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 11 Feb 2014 18:01:11 +0100 Subject: fix compilation warning in ConvEncoder --- src/ConvEncoder.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src') 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 -- cgit v1.2.3