Changeset 53329 in webkit


Ignore:
Timestamp:
Jan 15, 2010 3:54:40 AM (14 years ago)
Author:
Philippe Normand
Message:

2010-01-14 Philippe Normand <pnormand@igalia.com>

Reviewed by Xan Lopez.

[Gtk] Compiler warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning
https://bugs.webkit.org/show_bug.cgi?id=33575

Patch from Magnus Boman <captain.magnus@gmail.com>

  • platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp: (WebCore::mimeTypeCache): fix compiler warnings.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r53328 r53329  
     12010-01-14  Philippe Normand  <pnormand@igalia.com>
     2
     3        Reviewed by Xan Lopez.
     4
     5        [Gtk] Compiler warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning
     6        https://bugs.webkit.org/show_bug.cgi?id=33575
     7
     8        Patch from Magnus Boman <captain.magnus@gmail.com>
     9
     10        * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
     11        (WebCore::mimeTypeCache): fix compiler warnings.
     12
    1132010-01-14  Mikhail Naganov  <mnaganov@chromium.org>
    214
  • trunk/WebCore/platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp

    r53255 r53329  
    870870                            gint minLayer = gst_value_get_int_range_min(layer);
    871871                            gint maxLayer = gst_value_get_int_range_max(layer);
    872                             if (minLayer <= 1 <= maxLayer)
     872                            if (minLayer <= 1 && 1 <= maxLayer)
    873873                                cache.add(String("audio/mp1"));
    874                             if (minLayer <= 2 <= maxLayer)
     874                            if (minLayer <= 2 && 2 <= maxLayer)
    875875                                cache.add(String("audio/mp2"));
    876                             if (minLayer <= 3 <= maxLayer)
     876                            if (minLayer <= 3 && 3 <= maxLayer)
    877877                                cache.add(String("audio/mp3"));
    878878                        }
Note: See TracChangeset for help on using the changeset viewer.