Coverity analysis defect 122072: Macro compares unsigned to 0

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • Security 2022-05-02
    • 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/fle_crud.cpp:1159: NO_EFFECT 122072 This greater-than-or-equal-to-zero comparison of an unsigned value is always true. "docCount >= 0UL".

            Assignee:
            Mark Benvenuto
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: