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, 3 insertions, 3 deletions
diff --git a/basic/source/sbx/sbxbyte.cxx b/basic/source/sbx/sbxbyte.cxx
index 562979b4c37e..9d52eebec395 100644
--- a/basic/source/sbx/sbxbyte.cxx
+++ b/basic/source/sbx/sbxbyte.cxx
@@ -21,7 +21,7 @@
#include <basic/sbx.hxx>
#include "sbxconv.hxx"
-#include <cmath>
+#include <rtl/math.hxx>
sal_uInt8 ImpGetByte( const SbxValues* p )
{
@@ -123,7 +123,7 @@ start:
SbxBase::SetError( ERRCODE_SBX_OVERFLOW ); nRes = 0;
}
else
- nRes = (sal_uInt8) std::lround( p->nSingle );
+ nRes = (sal_uInt8) rtl::math::round( p->nSingle );
break;
case SbxDATE:
case SbxDOUBLE:
@@ -149,7 +149,7 @@ start:
SbxBase::SetError( ERRCODE_SBX_OVERFLOW ); nRes = 0;
}
else
- nRes = (sal_uInt8) std::lround( dVal );
+ nRes = (sal_uInt8) rtl::math::round( dVal );
break;
}
case SbxBYREF | SbxSTRING: