Index: third_party/WebKit/Source/core/events/KeyboardEvent.cpp |
diff --git a/third_party/WebKit/Source/core/events/KeyboardEvent.cpp b/third_party/WebKit/Source/core/events/KeyboardEvent.cpp |
index d1a38933303514c1bedf69981e981fdc15e986ad..e95396cc9e3759a28bc52620e0e0dbe74605d851 100644 |
--- a/third_party/WebKit/Source/core/events/KeyboardEvent.cpp |
+++ b/third_party/WebKit/Source/core/events/KeyboardEvent.cpp |
@@ -187,11 +187,11 @@ bool KeyboardEvent::IsKeyboardEvent() const { |
return true; |
} |
-int KeyboardEvent::which() const { |
+unsigned KeyboardEvent::which() const { |
// Netscape's "which" returns a virtual key code for keydown and keyup, and a |
// character code for keypress. That's exactly what IE's "keyCode" returns. |
// So they are the same for keyboard events. |
- return keyCode(); |
+ return (unsigned)keyCode(); |
} |
void KeyboardEvent::InitLocationModifiers(unsigned location) { |