[mythtv-commits] Ticket #7232: DVB scanning channels fails with error parsing parameters
MythTV
mythtv at cvs.mythtv.org
Sun Oct 4 21:34:10 UTC 2009
#7232: DVB scanning channels fails with error parsing parameters
------------------------------------------------+---------------------------
Reporter: Tim Jordan <tim at wheresrover.co.uk> | Owner: danielk
Type: defect | Status: infoneeded
Priority: minor | Milestone: 0.22
Component: MythTV - General | Version: head
Severity: medium | Resolution:
Mlocked: 0 |
------------------------------------------------+---------------------------
Comment(by mythtv at dadeos.co.uk):
Yes, the {{{7232-v1.patch}}} also resolves the problem.
The problem appears to lie in the comparison that was being perform within
{{{DTVTunerType::operator!=()}}} reinterpret casting the {{{value}}}
member to be an unsigned int would be another solution.
It's slightly inaccurate to complain that gcc is treating the enumeration
inconsistently. The problems are caused by the fact that {{{0x80000000}}}
is an unsigned integer and as such is too large to fit within a signed
integer type. The code is incorrect, not the compiler.
It is better to compare objects of the same type, which is why I proposed
the solution I did.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7232#comment:5>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list