Details
-
Improvement
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
None
-
None
Description
In a recent code review, there was some discussion about when function returns should be compared against an explicit zero vs if (!func()). The answer is if the function is returning a boolean, but WT has mapped that to the int type for portability.
However, C has had a bool type since C99 via <stdbool.h>, also supported by Visual Studio 2013 and above.
Investigate converting WT to use explicit bool types to make it clear when expressions need to be compared against zero.
Attachments
Issue Links
- is depended on by
-
SERVER-20060 WiredTiger changes for MongoDB 3.1.8
-
- Closed
-
-
SERVER-20408 WiredTiger changes for MongoDB 3.1.9
-
- Closed
-
-
SERVER-20479 WiredTiger changes for MongoDB 3.0.7
-
- Closed
-