[Libreoffice-bugs] [Bug 131241] Hex value gives negative long / single / double number

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Mar 18 18:16:58 UTC 2020


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

--- Comment #3 from Andreas Heinisch <andreas.heinisch at yahoo.de> ---
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:
https://opengrok.libreoffice.org/xref/core/basic/source/comp/scanner.cxx?r=7ddedd25#490

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

-- 
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/20200318/27bf9d14/attachment.htm>


More information about the Libreoffice-bugs mailing list