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

Andreas Heinisch <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|[email protected] |[email protected]
                   |desktop.org                 |

--- Comment #3 from Andreas Heinisch <[email protected]> ---
Code pointer:
https://opengrok.libreoffice.org/xref/core/basic/source/sbx/sbxvalue.cxx?r=26f46b86#846

Small test case in both MS and LO:

Sub TestCase()

    Dim a As Boolean
    Dim b As Boolean
    a = True
    b = True
    '                              MS         LO      LO Removing bVBAInterop
    MsgBox TypeName(a \ b)       ' Integer    Long    Boolean
    MsgBox TypeName(a Mod b)     ' Integer    Long    Boolean
    MsgBox TypeName(a And b)     ' Boolean    Long    Boolean
    MsgBox TypeName(a Or b)      ' Boolean    Long    Boolean
    MsgBox TypeName(a Xor b)     ' Boolean    Long    Boolean
    MsgBox TypeName(a Eqv b)     ' Boolean    Long    Boolean
    MsgBox TypeName(a Imp b)     ' Boolean    Long    Boolean
    MsgBox TypeName(Not a)       ' Boolean    Boolean Boolean
    MsgBox TypeName(Not True)    ' Boolean    Long    Boolean
    MsgBox TypeName(Not False)   ' Boolean    Long    Boolean

End Sub

I would exclude the mod and the integer division from the boolean assignment.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to