https://bugs.documentfoundation.org/show_bug.cgi?id=142460
Bug ID: 142460
Summary: Type of result of comparison of literals in Basic must
be Boolean, not Integer
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: difficultyBeginner, easyHack, skillCpp
Severity: normal
Priority: medium
Component: BASIC
Assignee: [email protected]
Reporter: [email protected]
This basic code:
msgbox TypeName(1<2)
msgbox TypeName("A"<"Z")
A = "A"
Z = "Z"
msgbox TypeName(A < Z)
returns "Integer" in the first two case, and "Boolean" in the last one. The
result type for comparison, when using literals, must be Boolean, as when
comparing variables.
Code pointer: same as in tdf#142180 - see SbiExprNode::FoldConstantsBinaryNode
in basic/source/comp/exprnode.cxx.
The fix must include a unit test.
Please CC me to your gerrit change, so that I could help and review.
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs