<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - FIREBIRD: Migration of negative DECIMAL creates unusable values"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=126358#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - FIREBIRD: Migration of negative DECIMAL creates unusable values"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=126358">bug 126358</a>
from <span class="vcard"><a class="email" href="mailto:xiscofauli@libreoffice.org" title="Xisco FaulĂ <xiscofauli@libreoffice.org>"> <span class="fn">Xisco FaulĂ</span></a>
</span></b>
<pre>Changing
<a href="https://opengrok.libreoffice.org/xref/core/dbaccess/source/filter/hsqldb/rowinputbinary.cxx?r=2e26ef34#53">https://opengrok.libreoffice.org/xref/core/dbaccess/source/filter/hsqldb/rowinputbinary.cxx?r=2e26ef34#53</a>
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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>