Cleaned up signed / unsigned mismatch in FixedSizeMemoryPool tests 70/38970/2
authorAndrew Cox <andrew.cox@partner.samsung.com>
Fri, 24 Apr 2015 19:12:28 +0000 (20:12 +0100)
committerAndrew Cox <andrew.cox@partner.samsung.com>
Tue, 5 May 2015 12:28:25 +0000 (13:28 +0100)
Was causing compiler warnings.

Signed-off-by: Andrew Cox <andrew.cox@partner.samsung.com>
Change-Id: I2e8bf5ce9d2a6fd945bd112112c4731bcff61519

automated-tests/src/dali-internal/utc-Dali-Internal-FixedSizeMemoryPool.cpp

index 76b087a..c4f653f 100644 (file)
@@ -37,10 +37,10 @@ void utc_dali_internal_fixedsizememorypool_cleanup(void)
 namespace
 {
 
-int gTestObjectConstructed = 0;
-int gTestObjectDestructed = 0;
-int gTestObjectMethod = 0;
-int gTestObjectDataAccess = 0;
+unsigned int gTestObjectConstructed = 0;
+unsigned int gTestObjectDestructed = 0;
+unsigned int gTestObjectMethod = 0;
+unsigned int gTestObjectDataAccess = 0;
 
 } // namespace
 
@@ -76,7 +76,7 @@ public:
 
 private:
 
-  int mData1;
+  unsigned int mData1;
   bool mData2;
 
 };
@@ -92,17 +92,17 @@ int UtcDaliFixedSizeMemoryPoolCreate(void)
 
   TestObject* testObject1 = new (memoryPool.Allocate()) TestObject();
   DALI_TEST_CHECK( testObject1 );
-  DALI_TEST_EQUALS( gTestObjectConstructed, 1, TEST_LOCATION );
+  DALI_TEST_EQUALS( gTestObjectConstructed, 1U, TEST_LOCATION );
 
   testObject1->Method();
-  DALI_TEST_EQUALS( gTestObjectMethod, 1, TEST_LOCATION );
+  DALI_TEST_EQUALS( gTestObjectMethod, 1U, TEST_LOCATION );
 
   testObject1->DataAccess();
-  DALI_TEST_EQUALS( gTestObjectDataAccess, 1, TEST_LOCATION );
+  DALI_TEST_EQUALS( gTestObjectDataAccess, 1U, TEST_LOCATION );
 
   testObject1->~TestObject();
   memoryPool.Free( testObject1 );
-  DALI_TEST_EQUALS( gTestObjectDestructed, 1, TEST_LOCATION );
+  DALI_TEST_EQUALS( gTestObjectDestructed, 1U, TEST_LOCATION );
 
   END_TEST;
 }