-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
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.
- 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