From 727269d807060bbf7e032f79deb9ee61c5b352a3 Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Wed, 19 Jul 2006 15:42:39 +0000 Subject: INTEGRATION: CWS warningfixes02 (1.6.2); FILE MERGED 2006/06/30 12:16:38 sb 1.6.2.1: #i66577# Made the code compile (warning-free) on a unxlngi6.pro GCC 4.1.1 Linux box. --- pyuno/source/module/pyuno_util.cxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'pyuno/source/module/pyuno_util.cxx') diff --git a/pyuno/source/module/pyuno_util.cxx b/pyuno/source/module/pyuno_util.cxx index 16c518a996b1..baafad996609 100644 --- a/pyuno/source/module/pyuno_util.cxx +++ b/pyuno/source/module/pyuno_util.cxx @@ -4,9 +4,9 @@ * * $RCSfile: pyuno_util.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: hr $ $Date: 2006-06-20 05:04:45 $ + * last change: $Author: kz $ $Date: 2006-07-19 16:42:39 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -153,16 +153,18 @@ void log( RuntimeCargo * cargo, sal_Int32 level, const char *str ) osl_getDateTimeFromTimeValue( &localTime, &localDateTime ); fprintf( cargo->logFile, - "%4i-%02i-%02i %02i:%02i:%02i,%03i [%s,tid %i]: %s\n", + "%4i-%02i-%02i %02i:%02i:%02i,%03lu [%s,tid %ld]: %s\n", localDateTime.Year, localDateTime.Month, localDateTime.Day, localDateTime.Hours, localDateTime.Minutes, localDateTime.Seconds, - localDateTime.NanoSeconds/1000000, + sal::static_int_cast< unsigned long >( + localDateTime.NanoSeconds/1000000), strLevel[level], - (sal_Int32) osl_getThreadIdentifier( 0), + sal::static_int_cast< long >( + (sal_Int32) osl_getThreadIdentifier( 0)), str ); } } -- cgit