summaryrefslogtreecommitdiffstats
path: root/basic/source/sbx/sbxdec.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basic/source/sbx/sbxdec.cxx')
-rw-r--r--basic/source/sbx/sbxdec.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/sbx/sbxdec.cxx b/basic/source/sbx/sbxdec.cxx
index b41bc914df92..183abf2de137 100644
--- a/basic/source/sbx/sbxdec.cxx
+++ b/basic/source/sbx/sbxdec.cxx
@@ -442,13 +442,13 @@ start:
}
case SbxSALINT64:
{
- if( !pnDecRes->setDouble( (double)p->nInt64 ) )
+ if( !pnDecRes->setDouble( static_cast<double>(p->nInt64) ) )
SbxBase::SetError( ERRCODE_BASIC_MATH_OVERFLOW );
break;
}
case SbxSALUINT64:
{
- if( !pnDecRes->setDouble( (double)p->uInt64 ) )
+ if( !pnDecRes->setDouble( static_cast<double>(p->uInt64) ) )
SbxBase::SetError( ERRCODE_BASIC_MATH_OVERFLOW );
break;
}