Coverity analysis defect 176989: Unsigned compared against 0

XMLWordPrintableJSON

    • Query Execution
    • Fully Compatible
    • ALL
    • QE 2025-10-13
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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/s/write_ops/unified_write_executor/write_batch_response_processor.cpp:799: NO_EFFECT 176989 This greater-than-or-equal-to-zero comparison of an unsigned value is always true. "this->_nModified >= 0UL".

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

              Created:
              Updated:
              Resolved: