Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-60616

Coverity analysis defect 120880: Unsigned compared against 0

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 5.2.0, 5.1.1
    • Affects Version/s: 5.1.0-rc0
    • Component/s: None
    • Labels:
    • Fully Compatible
    • v5.1
    • QE 2021-11-01

      Unsigned compared against 0

      An unsigned value can never be negative, so this test will always evaluate the same way. An unsigned value can never be less than 0
      /src/mongo/db/exec/sbe/expressions/expression.cpp:478: NO_EFFECT 120880 This greater-than-or-equal-to-zero comparison of an unsigned value is always true. "n >= 0UL".

            Assignee:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: