[SERVER-60617] Coverity analysis defect 120880: Unsigned compared against 0 Created: 12/Oct/21  Updated: 12/Oct/21  Resolved: 12/Oct/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-60616 Coverity analysis defect 120880: Unsi... Closed
Operating System: ALL
Participants:

 Description   

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".


Generated at Thu Feb 08 05:50:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.