Enforce use of bool literals instead of integers
Using clang-tidy's `modernize-use-bool-literals`. https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-bool-literals.html
This commit is contained in:
parent
1a8167867b
commit
dcd1151d77
31 changed files with 60 additions and 58 deletions
|
|
@ -261,9 +261,9 @@ struct PVRTCBlock {
|
|||
_FORCE_INLINE_ bool is_po2(uint32_t p_input) {
|
||||
|
||||
if (p_input == 0)
|
||||
return 0;
|
||||
return false;
|
||||
uint32_t minus1 = p_input - 1;
|
||||
return ((p_input | minus1) == (p_input ^ minus1)) ? 1 : 0;
|
||||
return ((p_input | minus1) == (p_input ^ minus1)) ? true : false;
|
||||
}
|
||||
|
||||
static void unpack_5554(const PVRTCBlock *p_block, int p_ab_colors[2][4]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue