diff options
author | David Tardon <dtardon@redhat.com> | 2012-03-08 06:42:43 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-03-12 08:53:27 +0100 |
commit | f9177e2f5c8016ce2afdb2888630ff52d4152255 (patch) | |
tree | f57dcecccfde9a9ea31c394fcaa0a65d52b11a86 | |
parent | 93f18659861f035f8d46e41d1a67e7cc1110aa52 (diff) |
WaE: comparison between signed and unsigned integer expressions
-rw-r--r-- | vcl/win/source/gdi/salprn.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/win/source/gdi/salprn.cxx b/vcl/win/source/gdi/salprn.cxx index efb3c8c6fcb9..bb4741f3b6d7 100644 --- a/vcl/win/source/gdi/salprn.cxx +++ b/vcl/win/source/gdi/salprn.cxx @@ -461,13 +461,13 @@ static sal_Bool ImplUpdateSalJobSetup( WinSalInfoPrinter* pPrinter, ImplJobSetup if( ((LPDEVMODEW)pOutDevMode)->dmSize >= 64 ) { sal_Int32 nLen = rtl_ustr_getLength( (const sal_Unicode*)((LPDEVMODEW)pOutDevMode)->dmDeviceName ); - if ( nLen < SAL_N_ELEMENTS( ((LPDEVMODEW)pOutDevMode)->dmDeviceName ) ) + if ( sal::static_int_cast<size_t>(nLen) < SAL_N_ELEMENTS( ((LPDEVMODEW)pOutDevMode)->dmDeviceName ) ) memset( ((LPDEVMODEW)pOutDevMode)->dmDeviceName+nLen, 0, sizeof( ((LPDEVMODEW)pOutDevMode)->dmDeviceName )-(nLen*sizeof(sal_Unicode)) ); } if( ((LPDEVMODEW)pOutDevMode)->dmSize >= 166 ) { sal_Int32 nLen = rtl_ustr_getLength( (const sal_Unicode*)((LPDEVMODEW)pOutDevMode)->dmFormName ); - if ( nLen < SAL_N_ELEMENTS( ((LPDEVMODEW)pOutDevMode)->dmFormName ) ) + if ( sal::static_int_cast<size_t>(nLen) < SAL_N_ELEMENTS( ((LPDEVMODEW)pOutDevMode)->dmFormName ) ) memset( ((LPDEVMODEW)pOutDevMode)->dmFormName+nLen, 0, sizeof( ((LPDEVMODEW)pOutDevMode)->dmFormName )-(nLen*sizeof(sal_Unicode)) ); } @@ -1217,7 +1217,7 @@ int WinSalInfoPrinter::GetLandscapeAngle( const ImplJobSetup* pSetupData ) { int nRet = ImplDeviceCaps( this, DC_ORIENTATION, NULL, pSetupData ); - if( nRet != GDI_ERROR ) + if( nRet != sal::static_int_cast<int>( GDI_ERROR ) ) return nRet * 10; else return 900; // guess |