diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-16 16:27:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-17 11:25:21 +0200 |
commit | 2e8acde112e1c6754df26902e79a78346ba45a2d (patch) | |
tree | 2d836747a7aafdd0b64ab9aabf01be59e94745d4 /basic/source | |
parent | Removing unused serialisation code (diff) | |
download | core-2e8acde112e1c6754df26902e79a78346ba45a2d.tar.gz core-2e8acde112e1c6754df26902e79a78346ba45a2d.zip |
remove UL/L suffixes from integer constants on the RHS of expressions
Change-Id: I899a8126c9d971601fea6c77eca165718aea0ac5
Reviewed-on: https://gerrit.libreoffice.org/41237
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic/source')
-rw-r--r-- | basic/source/runtime/methods.cxx | 2 | ||||
-rw-r--r-- | basic/source/runtime/props.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index f1b5b7d3365e..16e3d225be33 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -210,7 +210,7 @@ void SbRtl_Error(StarBASIC * pBasic, SbxArray & rPar, bool) else { nCode = rPar.Get( 1 )->GetLong(); - if( nCode > 65535L ) + if( nCode > 65535 ) { StarBASIC::Error( ERRCODE_BASIC_CONVERSION ); } diff --git a/basic/source/runtime/props.cxx b/basic/source/runtime/props.cxx index bd967f3ffd4e..a6bd4be345a4 100644 --- a/basic/source/runtime/props.cxx +++ b/basic/source/runtime/props.cxx @@ -45,7 +45,7 @@ void SbRtl_Err(StarBASIC *, SbxArray & rPar, bool bWrite) if( bWrite ) { sal_Int32 nVal = rPar.Get( 0 )->GetLong(); - if( nVal <= 65535L ) + if( nVal <= 65535 ) StarBASIC::Error( StarBASIC::GetSfxFromVBError( (sal_uInt16) nVal ) ); } else |