summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-07-27 17:53:09 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-07-27 17:59:17 +0900
commita1bb8153f9445171bbb5b64f23548d6750fcaf5d (patch)
treeb3df0be4bcc144b0067bfce07ff975af6cd7a027
parent9877be51998ac1ad3fb87f388aa123983cc84583 (diff)
downloadkaffeine-a1bb8153f9445171bbb5b64f23548d6750fcaf5d.tar.gz
kaffeine-a1bb8153f9445171bbb5b64f23548d6750fcaf5d.zip
Fixed FTBFS with clang.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit c073cbf71abe4c6ce92ac621fbe071b08895486b)
-rw-r--r--kaffeine/src/input/dvb/dvbstream.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kaffeine/src/input/dvb/dvbstream.cpp b/kaffeine/src/input/dvb/dvbstream.cpp
index d4149a8..7bd961d 100644
--- a/kaffeine/src/input/dvb/dvbstream.cpp
+++ b/kaffeine/src/input/dvb/dvbstream.cpp
@@ -797,14 +797,14 @@ void DvbStream::rotorCommand( int cmd, int n1, int n2, int n3 )
{ { 0xe0, 0x31, 0x66, 0x00, 0x00, 0x00 }, 3 }, //2 Set East Limit
{ { 0xe0, 0x31, 0x67, 0x00, 0x00, 0x00 }, 3 }, //3 Set West Limit
{ { 0xe0, 0x31, 0x68, 0x00, 0x00, 0x00 }, 4 }, //4 Drive Motor East continously
- { { 0xe0, 0x31, 0x68,256-n1,0x00, 0x00 }, 4 }, //5 Drive Motor East nn steps
- { { 0xe0, 0x31, 0x69,256-n1,0x00, 0x00 }, 4 }, //6 Drive Motor West nn steps
+ { { 0xe0, 0x31, 0x68, (__u8)(256-n1), 0x00, 0x00 }, 4 }, //5 Drive Motor East nn steps
+ { { 0xe0, 0x31, 0x69, (__u8)(256-n1), 0x00, 0x00 }, 4 }, //6 Drive Motor West nn steps
{ { 0xe0, 0x31, 0x69, 0x00, 0x00, 0x00 }, 4 }, //7 Drive Motor West continously
- { { 0xe0, 0x31, 0x6a, n1, 0x00, 0x00 }, 4 }, //8 Store nn
- { { 0xe0, 0x31, 0x6b, n1, 0x00, 0x00 }, 4 }, //9 Goto nn
- { { 0xe0, 0x31, 0x6f, n1, n2, n3 }, 4}, //10 Recalculate Position
+ { { 0xe0, 0x31, 0x6a, (__u8)(n1), 0x00, 0x00 }, 4 }, //8 Store nn
+ { { 0xe0, 0x31, 0x6b, (__u8)(n1), 0x00, 0x00 }, 4 }, //9 Goto nn
+ { { 0xe0, 0x31, 0x6f, (__u8)(n1), (__u8)(n2), (__u8)(n3) }, 4}, //10 Recalculate Position
{ { 0xe0, 0x31, 0x6a, 0x00, 0x00, 0x00 }, 4 }, //11 Enable Limits
- { { 0xe0, 0x31, 0x6e, n1, n2, 0x00 }, 5 }, //12 Gotoxx
+ { { 0xe0, 0x31, 0x6e, (__u8)(n1), (__u8)(n2), 0x00 }, 5 }, //12 Gotoxx
{ { 0xe0, 0x10, 0x38, 0xF4, 0x00, 0x00 }, 4 } //13 User
};