diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2017-07-01 16:01:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-03 08:41:29 +0200 |
commit | f5b0cc2a3690ba963b3f150886e1d5ddddee9530 (patch) | |
tree | d26080d3788451b3343be89d629b8dada0fb7685 /tools/qa | |
parent | 75bb1926c5ec3ea4b40d578851774725de0e7440 (diff) |
use sal_Int32 in tools::Date
instead of long, which has platform-dependant length
(32bits on windows, 64bit on everything else)
Change-Id: I9b5a950f56dad99a016b481c221bfd103ffa3911
Reviewed-on: https://gerrit.libreoffice.org/39433
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools/qa')
-rw-r--r-- | tools/qa/cppunit/test_date.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/qa/cppunit/test_date.cxx b/tools/qa/cppunit/test_date.cxx index 054b38b1a727..4f36baa07564 100644 --- a/tools/qa/cppunit/test_date.cxx +++ b/tools/qa/cppunit/test_date.cxx @@ -32,12 +32,12 @@ void DateTest::testDate() const Date aMin(1,1,-32768); // minimum date const Date aMax(31,12,32767); // maximum date Date aDate(Date::EMPTY); - const long kMinDays = -11968265; - const long kMaxDays = 11967900; + const sal_Int32 kMinDays = -11968265; + const sal_Int32 kMaxDays = 11967900; // Last day BCE to first day CE is 1 day difference. - CPPUNIT_ASSERT_EQUAL( static_cast<long>(1), aCE - aBCE); - CPPUNIT_ASSERT_EQUAL( static_cast<long>(-1), aBCE - aCE); + CPPUNIT_ASSERT_EQUAL( static_cast<sal_Int32>(1), aCE - aBCE); + CPPUNIT_ASSERT_EQUAL( static_cast<sal_Int32>(-1), aBCE - aCE); aDate = aBCE; CPPUNIT_ASSERT_EQUAL( aCE.GetDate(), (aDate += 1).GetDate()); aDate = aCE; |