tasn pushed a commit to branch master.

commit 4a1c3d0f579486629f9794a9b3b72b8f8fac686c
Author: Tom Hacohen <[email protected]>
Date:   Fri Mar 8 17:32:23 2013 +0000

    Ecore coroutine test: Fixed compilation warnings.
---
 src/tests/ecore/ecore_test_coroutine.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/tests/ecore/ecore_test_coroutine.c 
b/src/tests/ecore/ecore_test_coroutine.c
index e6c200a..8d80737 100644
--- a/src/tests/ecore/ecore_test_coroutine.c
+++ b/src/tests/ecore/ecore_test_coroutine.c
@@ -13,8 +13,8 @@
 typedef struct _Ecore_Coroutine_Test Ecore_Coroutine_Test;
 struct _Ecore_Coroutine_Test
 {
-   int v;
-   int s;
+   unsigned int v;
+   unsigned int s;
 };
 
 static Ecore_Coroutine_Test t1;
@@ -49,7 +49,7 @@ START_TEST(ecore_test_coroutine_simple)
 {
    Ecore_Coroutine *coro1;
    Ecore_Coroutine *coro2;
-   int value[] = { 7, 42, 0xDEADBEEF };
+   unsigned int value[] = { 7, 42, 0xDEADBEEF };
 
    ecore_init();
 
@@ -65,11 +65,11 @@ START_TEST(ecore_test_coroutine_simple)
    fail_if(t1.v != 0xDEADBEEF || t1.s != 0xDEADBEEF);
    fail_if(ecore_coroutine_resume(coro1) != 42);
    fail_if(t1.v != value[0] || t1.s != 0xDEADBEEF);
-   fail_if(ecore_coroutine_resume(coro1) != 0xDEADBEEF);
+   fail_if((unsigned int) ecore_coroutine_resume(coro1) != 0xDEADBEEF);
    fail_if(t1.v != value[0] || t1.s != value[0]);
    fail_if(ecore_coroutine_resume(coro2) != 7);
    fail_if(t1.v != value[1] || t1.s != value[0]);
-   fail_if(ecore_coroutine_resume(coro2) != 0xDEADBEEF);
+   fail_if((unsigned int) ecore_coroutine_resume(coro2) != 0xDEADBEEF);
    fail_if(t1.v != value[1] || t1.s != value[1]);
    fail_if(ecore_coroutine_state_get(coro2) != ECORE_COROUTINE_FINISHED);
 

-- 

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev

Reply via email to