summaryrefslogtreecommitdiff
path: root/rsc
diff options
context:
space:
mode:
Diffstat (limited to 'rsc')
-rw-r--r--rsc/source/res/rscrange.cxx6
-rw-r--r--rsc/source/tools/rscdef.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/rsc/source/res/rscrange.cxx b/rsc/source/res/rscrange.cxx
index 9f7a73087f11..6e379ffdcc64 100644
--- a/rsc/source/res/rscrange.cxx
+++ b/rsc/source/res/rscrange.cxx
@@ -100,8 +100,8 @@ RSCINST RscRange::Create( RSCINST * pInst, const RSCINST & rDflt,
memmove( aInst.pData, rDflt.pData, sizeof( RscRangeInst ) );
else
{
- if( 0L >= nMin && 0L <= nMax )
- reinterpret_cast<RscRangeInst *>(aInst.pData)->nValue = (sal_uInt16)(0L - nMin);
+ if( 0 >= nMin && 0 <= nMax )
+ reinterpret_cast<RscRangeInst *>(aInst.pData)->nValue = (sal_uInt16)(0 - nMin);
else
reinterpret_cast<RscRangeInst *>(aInst.pData)->nValue = 0;
@@ -211,7 +211,7 @@ RSCINST RscLongRange::Create( RSCINST * pInst, const RSCINST & rDflt,
else
{
sal_Int32 lDflt;
- if( 0L >= nMin && 0L <= nMax )
+ if( 0 >= nMin && 0 <= nMax )
lDflt = 0;
else
lDflt = nMin;
diff --git a/rsc/source/tools/rscdef.cxx b/rsc/source/tools/rscdef.cxx
index e7f5f444e5f7..be4ea3ff2477 100644
--- a/rsc/source/tools/rscdef.cxx
+++ b/rsc/source/tools/rscdef.cxx
@@ -301,7 +301,7 @@ bool RscExpression::Evaluate( sal_Int32 * plValue )
*plValue = lLeft << lRight;
else
{
- if( 0L == lRight )
+ if( 0 == lRight )
return false;
*plValue = lLeft / lRight;
}