Title: [106145] trunk/Source/WebKit2
Revision
106145
Author
[email protected]
Date
2012-01-27 13:47:51 -0800 (Fri, 27 Jan 2012)

Log Message

Fix a compilation warning in a WebKit2 GTK+ API test.

Reviewed by Gustavo Noronha Silva.

* UIProcess/API/gtk/tests/TestBackForwardList.cpp:
(testBackForwardListLimitAndCache): Use an int instead of size_t
because we want to print them as ints and do subtraction on them.

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (106144 => 106145)


--- trunk/Source/WebKit2/ChangeLog	2012-01-27 21:27:15 UTC (rev 106144)
+++ trunk/Source/WebKit2/ChangeLog	2012-01-27 21:47:51 UTC (rev 106145)
@@ -1,5 +1,15 @@
 2012-01-27  Martin Robinson  <[email protected]>
 
+        Fix a compilation warning in a WebKit2 GTK+ API test.
+
+        Reviewed by Gustavo Noronha Silva.
+
+        * UIProcess/API/gtk/tests/TestBackForwardList.cpp:
+        (testBackForwardListLimitAndCache): Use an int instead of size_t
+        because we want to print them as ints and do subtraction on them.
+
+2012-01-27  Martin Robinson  <[email protected]>
+
         [GTK] [WK2] Implement the policy client
         https://bugs.webkit.org/show_bug.cgi?id=76343
 

Modified: trunk/Source/WebKit2/UIProcess/API/gtk/tests/TestBackForwardList.cpp (106144 => 106145)


--- trunk/Source/WebKit2/UIProcess/API/gtk/tests/TestBackForwardList.cpp	2012-01-27 21:27:15 UTC (rev 106144)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/tests/TestBackForwardList.cpp	2012-01-27 21:47:51 UTC (rev 106145)
@@ -27,7 +27,7 @@
 #include <webkit2/webkit2.h>
 
 // Back forward list limit is 100 by default.
-static const size_t kBackForwardListLimit = 100;
+static const int kBackForwardListLimit = 100;
 
 static WebKitTestServer* kServer;
 
@@ -240,7 +240,7 @@
 
 static void testBackForwardListLimitAndCache(BackForwardListTest* test, gconstpointer)
 {
-    for (size_t i = 0; i < kBackForwardListLimit; i++) {
+    for (int i = 0; i < kBackForwardListLimit; i++) {
         GOwnPtr<char> path(g_strdup_printf("/Page%d", i));
         test->m_changedFlags = BackForwardListTest::CurrentItem | BackForwardListTest::AddedItem;
         test->loadURI(kServer->getURIForPath(path.get()).data());
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to