[Libreoffice-commits] .: binfilter/bf_sch

Julien Nabet serval2412 at kemper.freedesktop.org
Sat Jun 11 09:28:45 PDT 2011


 binfilter/bf_sch/source/core/sch_globfunc.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit fa999cb3d4d857c46236ff15a3b04b98260b866d
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat Jun 11 18:26:38 2011 +0200

    WaE : it needed casts

diff --git a/binfilter/bf_sch/source/core/sch_globfunc.cxx b/binfilter/bf_sch/source/core/sch_globfunc.cxx
index 5715a85..01d5afe 100644
--- a/binfilter/bf_sch/source/core/sch_globfunc.cxx
+++ b/binfilter/bf_sch/source/core/sch_globfunc.cxx
@@ -1286,7 +1286,7 @@ namespace binfilter {
 /*N*/ 	const USHORT* pRanges = rSet.GetRanges();
 /*N*/ 	for( long n = 0; pRanges[ n ] && n<32; n+=2 )
 /*N*/ 	{
-/*N*/ 		snprintf( pSmallBuf, sizeof(pSmallBuf), "[%"SAL_PRIdINT32"; %"SAL_PRIdINT32"] ", pRanges[ n ], pRanges[ n+1 ] );
+/*N*/ 		snprintf( pSmallBuf, sizeof(pSmallBuf), "[%"SAL_PRIdINT32"; %"SAL_PRIdINT32"] ", (sal_uInt32)pRanges[ n ], (sal_uInt32)pRanges[ n+1 ] );
 /*N*/ 		strncat( pBuf, pSmallBuf, sizeof(pBuf) - strlen(pBuf) - 1 );
 /*N*/ 	}
 /*N*/ 
@@ -1312,7 +1312,7 @@ namespace binfilter {
 /*N*/ 				nCns++;
 /*N*/ 			if( nCnt < 100 )
 /*N*/ 			{
-/*N*/ 				snprintf( pSmallBuf, sizeof(pSmallBuf), "%"SAL_PRIdINT32", ", nWhich );
+/*N*/ 				snprintf( pSmallBuf, sizeof(pSmallBuf), "%"SAL_PRIdINT32", ", (sal_uInt32) nWhich );
 /*N*/ 				strncat( pBuf, pSmallBuf, sizeof(pBuf) - strlen(pBuf) - 1 );
 /*N*/ 			}
 /*N*/ 


More information about the Libreoffice-commits mailing list