From e97a2d2a90de53f8a5dcbb39a1d07b7c3c49f674 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 18 Jul 2013 20:38:57 +0200 Subject: [PATCH] CFrontend: fix compiler warnings, wrong datatype There are a lot of possible conversion problems to one data type from other datatype those may alter values. Sure, not for all, but on this quantity it's not to be underestimated. This should be considered in more detail and should be corrected over time, if required. Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/e199d0c558edd297dc17066882eabdc99611cd46 Author: Thilo Graf Date: 2013-07-18 (Thu, 18 Jul 2013) ------------------ This commit was generated by Migit --- src/zapit/include/zapit/frontend_c.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zapit/include/zapit/frontend_c.h b/src/zapit/include/zapit/frontend_c.h index feefe3feb..957d0cbb3 100644 --- a/src/zapit/include/zapit/frontend_c.h +++ b/src/zapit/include/zapit/frontend_c.h @@ -171,7 +171,7 @@ class CFrontend static fe_code_rate_t getCodeRate(const uint8_t fec_inner, int system = 0); uint8_t getDiseqcPosition(void) const { return currentTransponder.diseqc; } - uint8_t getDiseqcRepeats(void) const { return config.diseqcRepeats; } + uint8_t getDiseqcRepeats(void) const { return (uint8_t) config.diseqcRepeats; } diseqc_t getDiseqcType(void) const { return (diseqc_t) config.diseqcType; } uint32_t getFrequency(void) const { return currentTransponder.feparams.dvb_feparams.frequency; } bool getHighBand() { return (int) getFrequency() >= lnbSwitch; }