<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Hex value gives negative long / single / double number"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=131241#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Hex value gives negative long / single / double number"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=131241">bug 131241</a>
from <span class="vcard"><a class="email" href="mailto:andreas.heinisch@yahoo.de" title="Andreas Heinisch <andreas.heinisch@yahoo.de>"> <span class="fn">Andreas Heinisch</span></a>
</span></b>
<pre>So the problem is, that the value of &HFFE0 lies within the Integer range.
Therefore, it will be treated as a negative value, since the high-order bit
is set. Then the negative value will be converted to a long value, when the
value to the variable is assigned.
Codepointer:
<a href="https://opengrok.libreoffice.org/xref/core/basic/source/comp/scanner.cxx?r=7ddedd25#490">https://opengrok.libreoffice.org/xref/core/basic/source/comp/scanner.cxx?r=7ddedd25#490</a>
Related:
<a class="bz_bug_link
bz_status_NEW "
title="NEW - BASIC: Data Type Characters with literals don't affect resulting value type"
href="show_bug.cgi?id=130476">https://bugs.documentfoundation.org/show_bug.cgi?id=130476</a></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>