summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2017-07-01 16:20:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-03 08:42:15 +0200
commit1fe0dc7377300ad961438f5a69bd8bc023cc314d (patch)
tree7a7d740747bd5b87d3c5ead7dd96d79d4a470bd2 /sc
parentf5b0cc2a3690ba963b3f150886e1d5ddddee9530 (diff)
use sal_Int64 in tools::DateTime
instead of long which has platform-dependent bitlength Change-Id: I888458d7807027e237772940d4b2cc15c2971243 Reviewed-on: https://gerrit.libreoffice.org/39434 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/excel/xlroot.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xlroot.cxx b/sc/source/filter/excel/xlroot.cxx
index cd8ea057cab5..262f40b409ba 100644
--- a/sc/source/filter/excel/xlroot.cxx
+++ b/sc/source/filter/excel/xlroot.cxx
@@ -339,7 +339,7 @@ DateTime XclRoot::GetDateTimeFromDouble( double fValue ) const
DateTime aDateTime = GetNullDate() + fValue;
// adjust dates before 1900-03-01 to get correct time values
if( aDateTime < DateTime( Date( 1, 3, 1900 ) ) )
- aDateTime += 1L;
+ aDateTime += sal_Int32(1);
return aDateTime;
}