summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-02 10:16:57 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-02 14:48:52 +0100
commit6a5d0b6ad52ab6a01044daa31ca3c21b6565893e (patch)
tree552284d26ee5396661f64b91a9081e79670f7a0a /connectivity
parentc7c385bb8e42d2051bcf05fd75b2146fe9852317 (diff)
coverity#1242903 Result is not floating-point
Change-Id: Id816a9b8845eb9d41bfea5a8399bca86726bebfe
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/dbase/DTable.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx
index d1d834f2bbe3..a0b3213a7d62 100644
--- a/connectivity/source/drivers/dbase/DTable.cxx
+++ b/connectivity/source/drivers/dbase/DTable.cxx
@@ -177,9 +177,9 @@ void lcl_CalDate(sal_Int32 _nJulianDate,sal_Int32 _nJulianTime,com::sun::star::u
if ( _nJulianTime )
{
- double d_s = _nJulianTime / 1000;
- double d_m = d_s / 60;
- double d_h = d_m / 60;
+ double d_s = _nJulianTime / 1000.0;
+ double d_m = d_s / 60.0;
+ double d_h = d_m / 60.0;
_rDateTime.Hours = (sal_uInt16) (d_h);
_rDateTime.Minutes = (sal_uInt16) d_m;
_rDateTime.Seconds = static_cast<sal_uInt16>(( d_m - (double) _rDateTime.Minutes ) * 60.0);