Fix some compiler warnings (miscellaneous)
authorrwlbuis@webkit.org <rwlbuis@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Apr 2012 19:02:53 +0000 (19:02 +0000)
committerrwlbuis@webkit.org <rwlbuis@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Apr 2012 19:02:53 +0000 (19:02 +0000)
https://bugs.webkit.org/show_bug.cgi?id=80790

Reviewed by Antonio Gomes.

Fix signed/unsigned comparison warning.

* parser/Lexer.cpp:
(JSC::::record16):

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

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/parser/Lexer.cpp

index 1874fcb..7b01ba8 100644 (file)
@@ -1,3 +1,15 @@
+2012-04-13  Rob Buis  <rbuis@rim.com>
+
+        Fix some compiler warnings (miscellaneous)
+        https://bugs.webkit.org/show_bug.cgi?id=80790
+
+        Reviewed by Antonio Gomes.
+
+        Fix signed/unsigned comparison warning.
+
+        * parser/Lexer.cpp:
+        (JSC::::record16):
+
 2012-04-12  Benjamin Poulain  <bpoulain@apple.com>
 
         Improve replaceUsingStringSearch() for case of a single character searchValue
index 833e16f..a710e99 100644 (file)
@@ -628,7 +628,7 @@ template <typename T>
 inline void Lexer<T>::record16(int c)
 {
     ASSERT(c >= 0);
-    ASSERT(c <= USHRT_MAX);
+    ASSERT(c <= static_cast<int>(USHRT_MAX));
     m_buffer16.append(static_cast<UChar>(c));
 }