32-bit Mac build fix.
authorap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Apr 2011 21:26:44 +0000 (21:26 +0000)
committerap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Apr 2011 21:26:44 +0000 (21:26 +0000)
        * dom/KeyboardEvent.h: (WebCore::KeypressCommand::KeypressCommand): Use 0U to index a String
        to avoid ambiguity.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@82720 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/dom/KeyboardEvent.h

index 9408887..e2df93d 100644 (file)
@@ -1,5 +1,12 @@
 2011-04-01  Alexey Proskuryakov  <ap@apple.com>
 
+        32-bit Mac build fix.
+
+        * dom/KeyboardEvent.h: (WebCore::KeypressCommand::KeypressCommand): Use 0U to index a String
+        to avoid ambiguity.
+
+2011-04-01  Alexey Proskuryakov  <ap@apple.com>
+
         Reviewed by Darin Adler.
 
         Make WebKit2 text input handling more like WebKit1
index bb4346f..1c49215 100644 (file)
@@ -36,7 +36,7 @@ namespace WebCore {
 #if PLATFORM(MAC)
     struct KeypressCommand {
         KeypressCommand() { }
-        KeypressCommand(const String& commandName) : commandName(commandName) { ASSERT(isASCIILower(commandName[0])); }
+        KeypressCommand(const String& commandName) : commandName(commandName) { ASSERT(isASCIILower(commandName[0U])); }
         KeypressCommand(const String& commandName, const String& text) : commandName(commandName), text(text) { ASSERT(commandName == "insertText:"); }
 
         String commandName; // Actually, a selector name - it may have a trailing colon, and a name that can be different from an editor command name.