diff options
Diffstat (limited to 'basic/source/runtime/methods.cxx')
-rw-r--r-- | basic/source/runtime/methods.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index b35d8d626ddd..7544946240b1 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -1828,12 +1828,12 @@ sal_Int16 implGetDateDay( double aDate ) if ( aDate >= 0.0 ) { aDate = floor( aDate ); - aRefDate += (sal_uIntPtr)aDate; + aRefDate += static_cast<long>(aDate); } else { aDate = ceil( aDate ); - aRefDate -= (sal_uIntPtr)(-1.0 * aDate); + aRefDate -= static_cast<long>(-1.0 * aDate); } sal_Int16 nRet = (sal_Int16)( aRefDate.GetDay() ); |