[Libreoffice-bugs] [Bug 126358] FIREBIRD: Migration of negative DECIMAL creates unusable values

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Jul 12 09:46:02 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=126358

--- Comment #1 from Xisco FaulĂ­ <xiscofauli at libreoffice.org> ---
Changing
https://opengrok.libreoffice.org/xref/core/dbaccess/source/filter/hsqldb/rowinputbinary.cxx?r=2e26ef34#53
from

int shifted_in = (bytes[i] & (1 << (7 - j))) ? 1 : 0;

to

int shifted_in = (bytes[i] & (1 << (7 - j))) ? 0 : 1;

would make the negative numbers to be displayed correctly... we would just need
to append the '-' sign at the beginning

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190712/76a58486/attachment.html>


More information about the Libreoffice-bugs mailing list