[SERVER-29003] Expression 'i >= 0' is always true. Unsigned type value is always >= 0. mmap_windows.cpp 197 Created: 27/Apr/17 Updated: 30/Oct/23 Resolved: 08/Jun/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Storage |
| Affects Version/s: | None |
| Fix Version/s: | 3.5.9 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Kelsey Schubert | Assignee: | Kim Tao |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Sprint: | Storage 2017-06-19 | ||||||||
| Participants: | |||||||||
| Description |
A link to the source code on GitHub PVS-Studio warning: V547 Expression 'i >= 0' is always true. Unsigned type value is always >= 0. mmap_windows.cpp 197 The conditional statement of the loop (i >= 0) should always be true, as the loop counter ( i ) is of unsigned type (size_t). This issue was originally reported in |
| Comments |
| Comment by Githook User [ 08/Jun/17 ] |
|
Author: {u'name': u'Kim Tao', u'email': u'kim.tao@mongodb.com'}Message: |