[Libreoffice-bugs] [Bug 142048] Long hexadecimal values are wrongly interpreted as Integers when they start with zeroes
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Mon May 3 07:58:30 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=142048
Mike Kaganski <mikekaganski at hotmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |NOTABUG
--- Comment #1 from Mike Kaganski <mikekaganski at hotmail.com> ---
This is not a bug. The leading zeroes should not affect the type of the
literal. But when you need to have a literal of specific type, use type
characters: e.g., '&' for long (see tdf#130476).
The previous behavior was a bug. Current behavior is not only correct, but also
consistent with other Basic variants, like VBA.
Compare:
> MsgBox TypeName(&H00008000)
> MsgBox TypeName(&H00008000&)
--
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/20210503/a81701d9/attachment.htm>
More information about the Libreoffice-bugs
mailing list