From ce9d89d892a38f08937f6326131cc18cf2763e9e Mon Sep 17 00:00:00 2001 From: "henrike@webrtc.org" Date: Sat, 19 Nov 2011 00:14:37 +0000 Subject: [PATCH] Fixes linux build error introduced in r980. Review URL: http://webrtc-codereview.appspot.com/279012 git-svn-id: http://webrtc.googlecode.com/svn/trunk@981 4adac7df-926f-26a2-2b94-8c16560cd09d --- src/system_wrappers/source/cpu_wrapper_unittest.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/system_wrappers/source/cpu_wrapper_unittest.cc b/src/system_wrappers/source/cpu_wrapper_unittest.cc index 15a3e74e7..ab678c6f8 100644 --- a/src/system_wrappers/source/cpu_wrapper_unittest.cc +++ b/src/system_wrappers/source/cpu_wrapper_unittest.cc @@ -42,7 +42,7 @@ TEST(CpuWrapperTest, Usage) { // Should not take more than 10000 ms. while (cpu_usage_available && (++num_iterations < 10000)) { if (cores != NULL) { - ASSERT_GT(num_cores, 0); + ASSERT_GT(num_cores, 0u); break; } sleep_event->Wait(1); @@ -52,14 +52,14 @@ TEST(CpuWrapperTest, Usage) { const WebRtc_Word32 total = cpu->CpuUsageMultiCore(num_cores, cores); ASSERT_TRUE(cores != NULL); - EXPECT_GT(num_cores, 0); + EXPECT_GT(num_cores, 0u); EXPECT_GE(total, 0); printf("\nNumCores:%d\n", num_cores); printf("Total cpu:%d\n", total); for (WebRtc_UWord32 i = 0; i < num_cores; i++) { printf("Core:%u CPU:%u \n", i, cores[i]); - EXPECT_LE(cores[i], total); + EXPECT_LE(cores[i], static_cast (total)); } delete cpu;