Skip to content

Commit

Permalink
tidy: Fix a couple of "narrowing conversions" warning.
Browse files Browse the repository at this point in the history
Tidy is warning about a couple of uints that are being assigned to
int.  This appears to be a result of an enum size being changed from
uint->uint8_t, and a function that takes that enum as an argument not
also having its size changed.

These were introduced in bbe421d.
  • Loading branch information
linuxdude42 committed Oct 4, 2024
1 parent e0fde62 commit f144c39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/dtvconfparserhelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -696,10 +696,10 @@ class DTVModulationSystem : public DTVParamHelper
"Modulation System types don't match DVB includes.");
#endif

explicit DTVModulationSystem(uint _value = kModulationSystem_UNDEFINED)
explicit DTVModulationSystem(uint8_t _value = kModulationSystem_UNDEFINED)
: DTVParamHelper(_value) { }

DTVModulationSystem& operator=(uint _value)
DTVModulationSystem& operator=(uint8_t _value)
{ m_value = _value; return *this; }

bool IsCompatible(const DTVModulationSystem other) const
Expand Down

0 comments on commit f144c39

Please sign in to comment.