diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-02-05 00:10:33 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-02-05 00:56:15 +0200 |
commit | f2133eb31696a417f783f34bb98d980e4ac0b1ff (patch) | |
tree | 5b034f00fe3464a1978949eb01c16ea0dd1ba8a5 /vcl | |
parent | 709f6ba6ae5d2b5461136595a2469bf1fe32ccff (diff) |
WaE: comparison of integers of different signs: 'long' and 'unsigned long'
Change-Id: I0669a75fcb91a2b713212983d6e04a5e17e297c4
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/edit.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index 033dd78ed390..80ed74897b47 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -544,7 +544,7 @@ void Edit::ImplRepaint( xub_StrLen nStart, xub_StrLen nEnd, bool bLayout ) if( !aText.isEmpty() ) { - if( 2*aText.getLength() > SAL_N_ELEMENTS(nDXBuffer) ) + if( (size_t) (2*aText.getLength()) > SAL_N_ELEMENTS(nDXBuffer) ) { pDXBuffer = new sal_Int32[2*(aText.getLength()+1)]; pDX = pDXBuffer; @@ -1220,7 +1220,7 @@ void Edit::ImplShowCursor( sal_Bool bOnlyIfVisible ) if( !aText.isEmpty() ) { - if( 2*aText.getLength() > SAL_N_ELEMENTS(nDXBuffer) ) + if( (size_t) (2*aText.getLength()) > SAL_N_ELEMENTS(nDXBuffer) ) { pDXBuffer = new sal_Int32[2*(aText.getLength()+1)]; pDX = pDXBuffer; @@ -1343,7 +1343,7 @@ xub_StrLen Edit::ImplGetCharPos( const Point& rWindowPos ) const sal_Int32 nDXBuffer[256]; sal_Int32* pDXBuffer = NULL; sal_Int32* pDX = nDXBuffer; - if( 2*aText.getLength() > SAL_N_ELEMENTS(nDXBuffer) ) + if( (size_t) (2*aText.getLength()) > SAL_N_ELEMENTS(nDXBuffer) ) { pDXBuffer = new sal_Int32[2*(aText.getLength()+1)]; pDX = pDXBuffer; |