Commit c3eeea51 authored by xan@webkit.org's avatar xan@webkit.org

2009-07-30 Xan Lopez <xlopez@igalia.com>

        Reviewed by Simon Fraser.

        Fix compiler warning.

        * dom/SelectElement.cpp:
        (WebCore::SelectElement::menuListDefaultEventHandler):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@46595 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent c85f87df
2009-07-30 Xan Lopez <xlopez@igalia.com>
Reviewed by Simon Fraser.
Fix compiler warning.
* dom/SelectElement.cpp:
(WebCore::SelectElement::menuListDefaultEventHandler):
2009-07-29 Matt Perry <mpcomplete@chromium.org>
Reviewed by Adam Barth.
......
......@@ -587,7 +587,7 @@ void SelectElement::menuListDefaultEventHandler(SelectElementData& data, Element
handled = true;
}
if (handled && listIndex >= 0 && listIndex < listItems.size())
if (handled && listIndex >= 0 && (unsigned)listIndex < listItems.size())
setSelectedIndex(data, element, listToOptionIndex(data, element, listIndex));
#endif
if (handled)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment