Coverity analysis defect 128675: Macro compares unsigned to 0

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • QE 2022-10-03
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Macro compares unsigned to 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/query/sbe_stage_builder.cpp:1315: NO_EFFECT 128675 This greater-than-or-equal-to-zero comparison of an unsigned value is always true. "slotPos >= 0UL".

            Assignee:
            Romans Kasperovics
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: