From 15d8e578ed17a9940a08e3ac8e6c5d7e5a6075ef Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Tue, 19 Feb 2008 00:10:05 +0000 Subject: Fixed some warnings. svn-id: r30906 --- test/common/pack.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/common/pack.h') diff --git a/test/common/pack.h b/test/common/pack.h index 1db8c8c409..6d18c9c300 100644 --- a/test/common/pack.h +++ b/test/common/pack.h @@ -22,15 +22,15 @@ class PackTestSuite : public CxxTest::TestSuite public: void test_packing( void ) { - TS_ASSERT_EQUALS( sizeof(TestStruct), 4+1+2+4+1 ); + TS_ASSERT_EQUALS( sizeof(TestStruct), size_t(4+1+2+4+1) ); } void test_offsets( void ) { - TS_ASSERT_EQUALS( OFFS(TestStruct, x), 0 ); - TS_ASSERT_EQUALS( OFFS(TestStruct, y), 4 ); - TS_ASSERT_EQUALS( OFFS(TestStruct, z), 5 ); - TS_ASSERT_EQUALS( OFFS(TestStruct, a), 7 ); - TS_ASSERT_EQUALS( OFFS(TestStruct, b), 11 ); + TS_ASSERT_EQUALS( OFFS(TestStruct, x), (ptrdiff_t)0 ); + TS_ASSERT_EQUALS( OFFS(TestStruct, y), (ptrdiff_t)4 ); + TS_ASSERT_EQUALS( OFFS(TestStruct, z), (ptrdiff_t)5 ); + TS_ASSERT_EQUALS( OFFS(TestStruct, a), (ptrdiff_t)7 ); + TS_ASSERT_EQUALS( OFFS(TestStruct, b), (ptrdiff_t)11 ); } }; -- cgit v1.2.3