From 1736137bc9505762fd74185a839fa100b8fd3465 Mon Sep 17 00:00:00 2001 From: bitsawer Date: Sat, 4 Mar 2023 16:38:35 +0200 Subject: [PATCH] Fix several clang-tidy bool literal conversion warnings --- core/typedefs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/typedefs.h b/core/typedefs.h index cd1367611ad..1dcba581886 100644 --- a/core/typedefs.h +++ b/core/typedefs.h @@ -305,9 +305,9 @@ struct BuildIndexSequence<0, Is...> : IndexSequence {}; #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)