[mythtv-commits] Ticket #7232: DVB scanning channels fails with error parsing parameters

MythTV mythtv at cvs.mythtv.org
Mon Oct 5 16:14:09 UTC 2009


#7232: DVB scanning channels fails with error parsing parameters
------------------------------------------------+---------------------------
 Reporter:  Tim Jordan <tim at wheresrover.co.uk>  |        Owner:  danielk
     Type:  defect                              |       Status:  closed 
 Priority:  minor                               |    Milestone:  0.22   
Component:  MythTV - General                    |      Version:  head   
 Severity:  medium                              |   Resolution:  fixed  
  Mlocked:  0                                   |  
------------------------------------------------+---------------------------

Comment(by danielk):

 Peter, I think a reasonable interpretation of C++03, keeping C in mind,
 will cause 0x80000000 to be treated as an 32 bit integer containing the
 value 0x80000000. What I think happened is they added support for C++0x
 which allows you to specify the underlying type of the enumeration. And
 since the code was being rewritten the pre-existing logic which tried to
 be compatible with C99 code and how enum's have traditionally been handled
 was replaced with something quirky and less well thought out. Now whether
 the MythTV code as written is incorrect depends on whether what the
 compiler is doing now is in fact allowed by C++03; and I'm not sure after
 staring at way too much of the spec. When I'm not sure that's generally a
 good reason to avoid the code whether it really is correct or not.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/7232#comment:8>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list