From 544c785c13459f9efa2868eaddd86bd543e305e9 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Wed, 13 Jun 2012 14:08:40 +0100 Subject: quiet potential size warnings. --- cppu/source/uno/data.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cppu/source/uno/data.cxx') diff --git a/cppu/source/uno/data.cxx b/cppu/source/uno/data.cxx index ff17fb643782..1596f71caf27 100644 --- a/cppu/source/uno/data.cxx +++ b/cppu/source/uno/data.cxx @@ -366,7 +366,7 @@ CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_type_isAssignableFromData( #define MAX_ALIGNMENT_4 #endif -#define OFFSET_OF( s, m ) reinterpret_cast< std::size_t >((char *)&((s *)16)->m -16) +#define OFFSET_OF( s, m ) reinterpret_cast< int >((char *)&((s *)16)->m -16) #define BINTEST_VERIFY( c ) \ if (! (c)) { fprintf( stderr, "### binary compatibility test failed: %s [line %d]!!!\n", #c, __LINE__ ); abort(); } @@ -374,7 +374,7 @@ CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_type_isAssignableFromData( if (OFFSET_OF(s, m) != n) { fprintf( stderr, "### OFFSET_OF(" #s ", " #m ") = %" SAL_PRI_SIZET "u instead of expected %d!!!\n", OFFSET_OF(s, m), n ); abort(); } #define BINTEST_VERIFYSIZE( s, n ) \ - if (sizeof(s) != n) { fprintf( stderr, "### sizeof(" #s ") = %d instead of expected %d!!!\n", sizeof(s), n ); abort(); } + if (sizeof(s) != n) { fprintf( stderr, "### sizeof(" #s ") = %d instead of expected %d!!!\n", (int)sizeof(s), n ); abort(); } struct C1 { -- cgit