summaryrefslogtreecommitdiff
path: root/basic/source/sbx/sbxbyte.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basic/source/sbx/sbxbyte.cxx')
-rw-r--r--basic/source/sbx/sbxbyte.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/basic/source/sbx/sbxbyte.cxx b/basic/source/sbx/sbxbyte.cxx
index 5527a56f0e5b..562979b4c37e 100644
--- a/basic/source/sbx/sbxbyte.cxx
+++ b/basic/source/sbx/sbxbyte.cxx
@@ -21,6 +21,8 @@
#include <basic/sbx.hxx>
#include "sbxconv.hxx"
+#include <cmath>
+
sal_uInt8 ImpGetByte( const SbxValues* p )
{
SbxValues aTmp;
@@ -121,7 +123,7 @@ start:
SbxBase::SetError( ERRCODE_SBX_OVERFLOW ); nRes = 0;
}
else
- nRes = (sal_uInt8) ImpRound( p->nSingle );
+ nRes = (sal_uInt8) std::lround( p->nSingle );
break;
case SbxDATE:
case SbxDOUBLE:
@@ -147,7 +149,7 @@ start:
SbxBase::SetError( ERRCODE_SBX_OVERFLOW ); nRes = 0;
}
else
- nRes = (sal_uInt8) ImpRound( dVal );
+ nRes = (sal_uInt8) std::lround( dVal );
break;
}
case SbxBYREF | SbxSTRING: