From 603838254865f65be7b036cce87b19237f18f05e Mon Sep 17 00:00:00 2001 From: Daniel Boelzle Date: Fri, 15 Dec 2000 10:04:23 +0000 Subject: [PATCH] avoid compiler warnings --- cppu/source/typelib/typelib.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx index eb16a35f474e..3e5f2fe81df2 100644 --- a/cppu/source/typelib/typelib.cxx +++ b/cppu/source/typelib/typelib.cxx @@ -2,9 +2,9 @@ * * $RCSfile: typelib.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: dbo $ $Date: 2000-09-28 14:47:56 $ + * last change: $Author: dbo $ $Date: 2000-12-15 11:04:23 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1629,7 +1629,7 @@ extern "C" SAL_DLLEXPORT void SAL_CALL typelib_typedescription_getByName( MutexGuard aGuard( aInit.getMutex() ); if( !aInit.pCache ) aInit.pCache = new TypeDescriptionList_Impl; - if( aInit.pCache->size() >= nCacheSize ) + if( (sal_Int32)aInit.pCache->size() >= nCacheSize ) { typelib_typedescription_release( aInit.pCache->front() ); aInit.pCache->pop_front(); @@ -1689,7 +1689,7 @@ extern "C" SAL_DLLEXPORT void SAL_CALL typelib_typedescriptionreference_new( MutexGuard aGuard( aInit.getMutex() ); if( !aInit.pCache ) aInit.pCache = new TypeDescriptionList_Impl; - if( aInit.pCache->size() >= nCacheSize ) + if( (sal_Int32)aInit.pCache->size() >= nCacheSize ) { typelib_typedescription_release( aInit.pCache->front() ); aInit.pCache->pop_front(); @@ -1901,7 +1901,7 @@ extern "C" SAL_DLLEXPORT void SAL_CALL typelib_setCacheSize( sal_Int32 nNewSize MutexGuard aGuard( aInit.getMutex() ); if ((nNewSize < nCacheSize) && aInit.pCache) { - while (aInit.pCache->size() != nNewSize) + while ((sal_Int32)aInit.pCache->size() != nNewSize) { typelib_typedescription_release( aInit.pCache->front() ); aInit.pCache->pop_front(); @@ -2074,7 +2074,7 @@ extern "C" SAL_DLLEXPORT sal_Bool SAL_CALL typelib_typedescription_complete( MutexGuard aGuard( aInit.getMutex() ); if( !aInit.pCache ) aInit.pCache = new TypeDescriptionList_Impl; - if( aInit.pCache->size() >= nCacheSize ) + if( (sal_Int32)aInit.pCache->size() >= nCacheSize ) { typelib_typedescription_release( aInit.pCache->front() ); aInit.pCache->pop_front();