diff options
author | bitsawer <sawerduster@gmail.com> | 2023-03-04 16:38:35 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-03-27 17:03:22 +0200 |
commit | 6782cd72912453dceff55fcf5fb7b71dfaf22bd4 (patch) | |
tree | 02132fcc30de19ea142113fde0020d62dfd24b3d /core | |
parent | bb5a6e29ab3c4c87c5b912dbbde2977f7f9bf6d0 (diff) |
Fix several clang-tidy bool literal conversion warnings
(cherry picked from commit 1736137bc9505762fd74185a839fa100b8fd3465)
Diffstat (limited to 'core')
-rw-r--r-- | core/typedefs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/typedefs.h b/core/typedefs.h index cd1367611a..1dcba58188 100644 --- a/core/typedefs.h +++ b/core/typedefs.h @@ -305,9 +305,9 @@ struct BuildIndexSequence<0, Is...> : IndexSequence<Is...> {}; #endif // Macro GD_IS_DEFINED() allows to check if a macro is defined. It needs to be defined to anything (say 1) to work. -#define __GDARG_PLACEHOLDER_1 0, +#define __GDARG_PLACEHOLDER_1 false, #define __gd_take_second_arg(__ignored, val, ...) val -#define ____gd_is_defined(arg1_or_junk) __gd_take_second_arg(arg1_or_junk 1, 0) +#define ____gd_is_defined(arg1_or_junk) __gd_take_second_arg(arg1_or_junk true, false) #define ___gd_is_defined(val) ____gd_is_defined(__GDARG_PLACEHOLDER_##val) #define GD_IS_DEFINED(x) ___gd_is_defined(x) |