summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
Diffstat (limited to 'basic')
-rw-r--r--basic/source/sbx/sbxbyte.cxx2
-rw-r--r--basic/source/sbx/sbxint.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/sbx/sbxbyte.cxx b/basic/source/sbx/sbxbyte.cxx
index e125dd023ffc..df85f5f7f1e0 100644
--- a/basic/source/sbx/sbxbyte.cxx
+++ b/basic/source/sbx/sbxbyte.cxx
@@ -45,7 +45,7 @@ start:
nRes = static_cast<sal_uInt8>(p->nChar);
break;
case SbxBYTE:
- nRes = static_cast<sal_uInt8>(p->nByte); break;
+ nRes = p->nByte; break;
case SbxINTEGER:
case SbxBOOL:
if( p->nInteger > SbxMAXBYTE )
diff --git a/basic/source/sbx/sbxint.cxx b/basic/source/sbx/sbxint.cxx
index 3109f424164c..7f16ef7e0013 100644
--- a/basic/source/sbx/sbxint.cxx
+++ b/basic/source/sbx/sbxint.cxx
@@ -86,7 +86,7 @@ start:
break;
case SbxCURRENCY:
{
- sal_Int64 tstVal = static_cast<sal_Int64>(p->nInt64) / sal_Int64(CURRENCY_FACTOR);
+ sal_Int64 tstVal = p->nInt64 / sal_Int64(CURRENCY_FACTOR);
if( tstVal > SbxMAXINT )
{