dbaccess/source/filter/hsqldb/rowinputbinary.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 08bc5b49cb4fed31c3c08c61f178ee021db87246 Author: Xisco Fauli <[email protected]> AuthorDate: Wed Jul 10 19:06:13 2019 +0200 Commit: Thorsten Behrens <[email protected]> CommitDate: Wed Jul 17 23:11:58 2019 +0200 tdf#126268: Check for the sign value at the right place This commit contains 25277bcb727994072239c9c2549c271fdd62150e and 2e26ef34bf1a2e5d1293e45cf3b1415d9514b056 for backporting Code introduced in 6039d2463b4cc503b963811b3b1471de3291ee09 Unittest removed in libreoffice-6-2 branch See 7991a4d718c282f1fd999e76f683e333b5c220af Change-Id: Id0e249e47a91b274a247fb7e8b71353114149650 Reviewed-on: https://gerrit.libreoffice.org/75375 Tested-by: Jenkins Reviewed-by: Lionel Elie Mamane <[email protected]> Reviewed-by: Xisco FaulĂ <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/75420 Reviewed-by: Michael Stahl <[email protected]> Signed-off-by: Xisco Fauli <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/75761 Reviewed-by: Thorsten Behrens <[email protected]> diff --git a/dbaccess/source/filter/hsqldb/rowinputbinary.cxx b/dbaccess/source/filter/hsqldb/rowinputbinary.cxx index 5a447cacb4f3..cb02cde52a23 100644 --- a/dbaccess/source/filter/hsqldb/rowinputbinary.cxx +++ b/dbaccess/source/filter/hsqldb/rowinputbinary.cxx @@ -89,10 +89,10 @@ OUString lcl_double_dabble(const std::vector<sal_uInt8>& bytes) OUString lcl_makeStringFromBigint(const std::vector<sal_uInt8>& bytes) { std::vector<sal_uInt8> aBytes{ bytes }; - OUStringBuffer sRet; + // two's complement - if (aBytes[0] == 1) + if ((aBytes[0] & 0x80) != 0) { sRet.append("-"); for (auto& byte : aBytes) _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
