summaryrefslogtreecommitdiff
path: root/sal/typesconfig
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-10-24 12:28:51 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-10-24 12:28:51 +0000
commit80c24b896b8c88c3be6f6860d5da757edb22d07c (patch)
tree85a8dd15d2e78020c5f16653c169aab2d62a51a2 /sal/typesconfig
parentfbb7b62e9eb0a429ebe394573dc05acf8e591d4e (diff)
INTEGRATION: CWS pj59 (1.3.152); FILE MERGED
2006/09/20 21:11:35 pjanik 1.3.152.1: #i69605#: cast sizeof return value to int to prevent warnings.
Diffstat (limited to 'sal/typesconfig')
-rw-r--r--sal/typesconfig/typesconfig.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sal/typesconfig/typesconfig.c b/sal/typesconfig/typesconfig.c
index 6aa2ef3ae75b..de943e749e96 100644
--- a/sal/typesconfig/typesconfig.c
+++ b/sal/typesconfig/typesconfig.c
@@ -4,9 +4,9 @@
*
* $RCSfile: typesconfig.c,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 16:49:50 $
+ * last change: $Author: hr $ $Date: 2006-10-24 13:28:51 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -63,7 +63,7 @@
#include <setjmp.h>
#endif
-#define printTypeSize(Type,Name) printf( "sizeof(%s)\t\t= %d\n", Name, sizeof (Type) )
+#define printTypeSize(Type,Name) printf( "sizeof(%s)\t\t= %d\n", Name, (int) sizeof (Type) )
#define isSignedType(Type) (((Type)-1) < 0)
#define printTypeSign(Type,Name) printf( "%s\t\t= %s %s\n", Name, ( isSignedType(Type) ? "signed" : "unsigned" ), Name )
@@ -393,11 +393,11 @@ void Description_Print( struct Description* pThis, char* name )
for ( i = 0; i < 3; i++ )
fprintf( f, "#define SAL_TYPES_ALIGNMENT%d\t%d\n", 1 << (i+1), pThis->nAlignment[i] );
- fprintf( f, "#define SAL_TYPES_SIZEOFSHORT\t%d\n", sizeof( short ) );
- fprintf( f, "#define SAL_TYPES_SIZEOFINT\t%d\n", sizeof( int ) );
- fprintf( f, "#define SAL_TYPES_SIZEOFLONG\t%d\n", sizeof( long ) );
- fprintf( f, "#define SAL_TYPES_SIZEOFLONGLONG\t%d\n", sizeof( long long ) );
- fprintf( f, "#define SAL_TYPES_SIZEOFPOINTER\t%d\n", sizeof( void* ) );
+ fprintf( f, "#define SAL_TYPES_SIZEOFSHORT\t%d\n", (int) sizeof( short ) );
+ fprintf( f, "#define SAL_TYPES_SIZEOFINT\t%d\n", (int) sizeof( int ) );
+ fprintf( f, "#define SAL_TYPES_SIZEOFLONG\t%d\n", (int) sizeof( long ) );
+ fprintf( f, "#define SAL_TYPES_SIZEOFLONGLONG\t%d\n", (int) sizeof( long long ) );
+ fprintf( f, "#define SAL_TYPES_SIZEOFPOINTER\t%d\n", (int) sizeof( void* ) );
/* Disabled for now, becuase OOo code assumes sizeof(double) == 8 and this is not
* likely to change any time soon. fa (2004-03-15)