[mythtv-commits] Ticket #7160: Implicit sign extension

MythTV mythtv at cvs.mythtv.org
Fri Sep 25 16:53:45 UTC 2009


#7160: Implicit sign extension
---------------------------------------------+------------------------------
 Reporter:  Erik Hovland <erik at hovland.org>  |       Owner:  ijr    
     Type:  defect                           |      Status:  new    
 Priority:  trivial                          |   Milestone:  unknown
Component:  MythTV - General                 |     Version:  head   
 Severity:  low                              |     Mlocked:  0      
---------------------------------------------+------------------------------
 When going from one fixed signed type to a larger (signed or unsigned)
 through implicit casting, the caller might be accidentally extending the
 sign bit. It is likely better to explicitly cast before manipulation to
 the final value. There is a case of this implicit sign extension in
 FrequencyListDescriptor::Frequency() in libmythtv.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/7160>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list