Ticket #12996: 0008-Fix-compiler-comparison-is-always-false-due-to-limit.patch

File 0008-Fix-compiler-comparison-is-always-false-due-to-limit.patch, 1.2 KB (added by David Hampton <mythtv@…>, 7 years ago)

Fix 'comparison is always false' warning message.

  • mythtv/libs/libmythtv/Bluray/bdringbuffer.cpp

    Fix compiler 'comparison is always false due to limited range of data
    type' warning.
    
    ---
     mythtv/libs/libmythtv/Bluray/bdringbuffer.cpp | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/mythtv/libs/libmythtv/Bluray/bdringbuffer.cpp b/mythtv/libs/libmythtv/Bluray/bdringbuffer.cpp
    index 3314244..410342b 100644
    a b BDOverlay* BDRingBuffer::GetOverlay(void) 
    16761676
    16771677void BDRingBuffer::SubmitOverlay(const bd_overlay_s * const overlay)
    16781678{
    1679     if (!overlay || overlay->plane < 0 || overlay->plane > m_overlayPlanes.size())
     1679    if (!overlay || overlay->plane > m_overlayPlanes.size())
    16801680        return;
    16811681
    16821682    LOG(VB_PLAYBACK, LOG_DEBUG, QString("--------------------"));
    void BDRingBuffer::SubmitOverlay(const bd_overlay_s * const overlay) 
    17651765
    17661766void BDRingBuffer::SubmitARGBOverlay(const bd_argb_overlay_s * const overlay)
    17671767{
    1768     if (!overlay || overlay->plane < 0 || overlay->plane > m_overlayPlanes.size())
     1768    if (!overlay || overlay->plane > m_overlayPlanes.size())
    17691769        return;
    17701770
    17711771    LOG(VB_PLAYBACK, LOG_DEBUG, QString("--------------------"));