Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-5445

Short circuit logic for boolean eval

    XMLWordPrintable

Details

    Description

      Some OR evaluations ( a == true || b == true ) are typed with a single |
      Refer to https://wiki.sei.cmu.edu/confluence/display/c/EXP46-C.+Do+not+use+a+bitwise+operator+with+a+Boolean-like+operand

      Fix: Use two |

      Attachments

        Activity

          People

            jmesnil1@redhat.com Jeff Mesnil
            xf01213 Boris Unckel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: