Ticket #10523: c++standard_1.patch

File c++standard_1.patch, 828 bytes (added by Gary Buhrmaster <gary.buhrmaster@…>, 12 years ago)
  • mythtv/libs/libmythtv/dvbdev/dvbci.cpp

    diff --git a/mythtv/libs/libmythtv/dvbdev/dvbci.cpp b/mythtv/libs/libmythtv/dvbdev/dvbci.cpp
    index dd0ac2a..8d788c3 100644
    a b bool cCiDateTime::SendDateTime(void) 
    10981098     int D = tm_gmt.tm_mday;
    10991099     int L = (M == 1 || M == 2) ? 1 : 0;
    11001100     int MJD = 14956 + D + int((Y - L) * 365.25) + int((M + 1 + L * 12) * 30.6001);
    1101 #define DEC2BCD(d) (((d / 10) << 4) + (d % 10))
     1101#define DEC2BCD(d) (uint8_t(((d / 10) << 4) + (d % 10)))
    11021102     struct tTime { unsigned short mjd; uint8_t h, m, s; short offset; };
    11031103     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) };
    11041104     dbgprotocol("%d: ==> Date Time\n", SessionId());