Title: [102549] trunk/Source/_javascript_Core
Revision
102549
Author
wei...@apple.com
Date
2011-12-11 17:05:26 -0800 (Sun, 11 Dec 2011)

Log Message

Fix a signed vs. unsigned warning.

* runtime/ArgList.cpp:
(JSC::MarkedArgumentBuffer::slowAppend):
Cast inlineCapacity to an int to appease the warning. This is known OK
since inlineCapacity is defined to be 8.

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (102548 => 102549)


--- trunk/Source/_javascript_Core/ChangeLog	2011-12-12 00:50:34 UTC (rev 102548)
+++ trunk/Source/_javascript_Core/ChangeLog	2011-12-12 01:05:26 UTC (rev 102549)
@@ -1,3 +1,12 @@
+2011-12-11  Sam Weinig  <s...@webkit.org>
+
+        Fix a signed vs. unsigned warning.
+
+        * runtime/ArgList.cpp:
+        (JSC::MarkedArgumentBuffer::slowAppend):
+        Cast inlineCapacity to an int to appease the warning. This is known OK
+        since inlineCapacity is defined to be 8.
+
 2011-12-11  Geoffrey Garen  <gga...@apple.com>
 
         Rolled out *another* debugging change I committed accidentally.

Modified: trunk/Source/_javascript_Core/runtime/ArgList.cpp (102548 => 102549)


--- trunk/Source/_javascript_Core/runtime/ArgList.cpp	2011-12-12 00:50:34 UTC (rev 102548)
+++ trunk/Source/_javascript_Core/runtime/ArgList.cpp	2011-12-12 01:05:26 UTC (rev 102549)
@@ -57,7 +57,7 @@
     for (int i = 0; i < m_capacity; ++i)
         newBuffer[-i] = m_buffer[-i];
 
-    if (m_capacity != inlineCapacity)
+    if (m_capacity != static_cast<int>(inlineCapacity))
         delete [] &m_buffer[-(m_capacity - 1)];
 
     m_buffer = newBuffer;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to