[Libreoffice-commits] core.git: dbaccess/source

Noel Grandin noel.grandin at collabora.co.uk
Mon Mar 12 07:59:45 UTC 2018


 dbaccess/source/filter/hsqldb/rowinputbinary.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 886cf2526865d2de9a76379123c9c3469ff63721
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Mon Mar 12 09:58:44 2018 +0200

    blind fix for Android
    
    Change-Id: I014e23da43292b458ca046ebdc7fd6a472c6dffb

diff --git a/dbaccess/source/filter/hsqldb/rowinputbinary.cxx b/dbaccess/source/filter/hsqldb/rowinputbinary.cxx
index 7b6fd4eff94c..b0ca420f13df 100644
--- a/dbaccess/source/filter/hsqldb/rowinputbinary.cxx
+++ b/dbaccess/source/filter/hsqldb/rowinputbinary.cxx
@@ -305,7 +305,7 @@ std::vector<Any> HsqlRowInputStream::readOneRow(const ColumnTypeVector& nColType
             {
                 sal_Int64 value = 0;
                 m_pStream->ReadInt64(value); // in millisec, from 1970
-                sal_Int64 nEpochSec = value / 1000;
+                std::time_t nEpochSec = value / 1000;
                 std::tm* tm = std::gmtime(&nEpochSec);
                 css::util::Date date(tm->tm_mday, tm->tm_mon + 1,
                                      tm->tm_year + 1900); // day, month, year


More information about the Libreoffice-commits mailing list