Fix a compilation warning in a WebKit2 GTK+ API test.
authormrobinson@webkit.org <mrobinson@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Jan 2012 21:47:51 +0000 (21:47 +0000)
committermrobinson@webkit.org <mrobinson@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Jan 2012 21:47:51 +0000 (21:47 +0000)
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.

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

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/gtk/tests/TestBackForwardList.cpp

index 7b6add0..2d1c67d 100644 (file)
@@ -1,5 +1,15 @@
 2012-01-27  Martin Robinson  <mrobinson@igalia.com>
 
+        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  <mrobinson@igalia.com>
+
         [GTK] [WK2] Implement the policy client
         https://bugs.webkit.org/show_bug.cgi?id=76343
 
index ac2a572..cc657cc 100644 (file)
@@ -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 testBackForwardListNavigation(BackForwardListTest* test, gconstpoint
 
 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());