Coverity analysis defect 163726: Wrong operator used

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • ALL
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Wrong operator used

      Inadvertent use of the wrong operator results in a likely logic error. Common interchanges include bit-or and bit-and, left-shift and right-shift. Wrong operator used in expression
      /data/mci/4197827dfd19dfe79142f7d25f6e6f0f/bazel_cache/a1dc365b351479c659b51fd1e7d5df0a/execroot/_main/src/mongo/db/query/compiler/stats/rand_utils_new.cpp:271: CONSTANT_EXPRESSION_RESULT 163726 "(a << 8) & 255" is always 0 regardless of the values of its operands. This occurs as an initializer.

              Assignee:
              Henri Nikku
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: