Permalink
Browse files

Fixes #10523. Make cast explicit for C++11 happiness.

Signed-off-by: Daniel Kristjansson <danielk@cuymedia.net>
  • Loading branch information...
1 parent 2459ae0 commit 17a73edb5b0416663fa8c621459e5c2a970893d2 @garybuhrmaster garybuhrmaster committed with daniel-kristjansson Jun 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/libs/libmythtv/dvbdev/dvbci.cpp
View
2 mythtv/libs/libmythtv/dvbdev/dvbci.cpp
@@ -1098,7 +1098,7 @@ bool cCiDateTime::SendDateTime(void)
int D = tm_gmt.tm_mday;
int L = (M == 1 || M == 2) ? 1 : 0;
int MJD = 14956 + D + int((Y - L) * 365.25) + int((M + 1 + L * 12) * 30.6001);
-#define DEC2BCD(d) (((d / 10) << 4) + (d % 10))
+#define DEC2BCD(d) (uint8_t(((d / 10) << 4) + (d % 10)))
struct tTime { unsigned short mjd; uint8_t h, m, s; short offset; };
tTime T = { mjd : htons(MJD), h : DEC2BCD(tm_gmt.tm_hour), m : DEC2BCD(tm_gmt.tm_min), s : DEC2BCD(tm_gmt.tm_sec), offset : htons(tm_loc.tm_gmtoff / 60) };
dbgprotocol("%d: ==> Date Time\n", SessionId());

0 comments on commit 17a73ed

Please sign in to comment.