summaryrefslogtreecommitdiffstats
path: root/chrome/views/view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/views/view.cc')
-rw-r--r--chrome/views/view.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/views/view.cc b/chrome/views/view.cc
index 8230e58..4df9cc2 100644
--- a/chrome/views/view.cc
+++ b/chrome/views/view.cc
@@ -1445,7 +1445,8 @@ bool View::IsVisibleInRootView() const {
}
bool View::HitTest(const CPoint& l) const {
- if (l.x >= 0 && l.x < width() && l.y >= 0 && l.y < height()) {
+ if (l.x >= 0 && l.x < static_cast<int>(width()) &&
+ l.y >= 0 && l.y < static_cast<int>(height())) {
if (HasHitTestMask()) {
gfx::Path mask;
GetHitTestMask(&mask);