From f93bf8d379914e8faba90eb1f284d7a052a12edf Mon Sep 17 00:00:00 2001 From: Shao Changbin Date: Wed, 18 Sep 2013 11:06:42 +0800 Subject: [PATCH] Use unsigned int for data comparison inside ASSERT_GE() Buildbot reports warning message "C4018: '>=' : signed/unsigned mismatch" if the arguments of function ASSERT_GE() have different types. Since runtimes.size() returns an unsigned int value, this CL changes the other value to the same type for comparison. --- application/test/application_main_document_browsertest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/test/application_main_document_browsertest.cc b/application/test/application_main_document_browsertest.cc index 1fd5f4f9de..28e8ec22c9 100644 --- a/application/test/application_main_document_browsertest.cc +++ b/application/test/application_main_document_browsertest.cc @@ -61,7 +61,7 @@ IN_PROC_BROWSER_TEST_F(ApplicationMainDocumentBrowserTest, MainDocument) { content::RunAllPendingInMessageLoop(); const xwalk::RuntimeList& runtimes = RuntimeRegistry::Get()->runtimes(); // At least the main document's runtime exist after launch. - ASSERT_GE(runtimes.size(), 1); + ASSERT_GE(runtimes.size(), 1U); Runtime* main_runtime = runtimes[0]; xwalk::RuntimeContext* runtime_context = main_runtime->runtime_context();