Changeset 121797 in webkit


Ignore:
Timestamp:
Jul 3, 2012 12:12:13 PM (12 years ago)
Author:
zandobersek@gmail.com
Message:

[Gtk][Gamepads] 'warning: comparison is always true due to limited range of data type [-Wtype-limits]' in GamepadsGtk.cpp
https://bugs.webkit.org/show_bug.cgi?id=90477

Reviewed by Martin Robinson.

Vector::find() returns value of type size_t, springing errors when
assigning the value to a variable of type unsigned. Use size_t type
for that variable instead.

No new tests - no changed functionality.

  • platform/gtk/GamepadsGtk.cpp:

(WebCore::GamepadsGtk::unregisterDevice):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r121795 r121797  
     12012-07-03  Zan Dobersek  <zandobersek@gmail.com>
     2
     3        [Gtk][Gamepads] 'warning: comparison is always true due to limited range of data type [-Wtype-limits]' in GamepadsGtk.cpp
     4        https://bugs.webkit.org/show_bug.cgi?id=90477
     5
     6        Reviewed by Martin Robinson.
     7
     8        Vector::find() returns value of type size_t, springing errors when
     9        assigning the value to a variable of type unsigned. Use size_t type
     10        for that variable instead.
     11
     12        No new tests - no changed functionality.
     13
     14        * platform/gtk/GamepadsGtk.cpp:
     15        (WebCore::GamepadsGtk::unregisterDevice):
     16
    1172012-07-03  Dominik Röttsches  <dominik.rottsches@intel.com>
    218
  • trunk/Source/WebCore/platform/gtk/GamepadsGtk.cpp

    r121332 r121797  
    155155
    156156    GamepadDeviceGtk* gamepadDevice = m_deviceMap.take(deviceFile);
    157     unsigned index = m_slots.find(gamepadDevice);
     157    size_t index = m_slots.find(gamepadDevice);
    158158    ASSERT(index != notFound);
    159159
Note: See TracChangeset for help on using the changeset viewer.