From 7d94b18dcc41ccdcb5c8e9cff658b7c2a84b283f Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Tue, 15 Oct 2024 18:31:15 +0200 Subject: Fix incorrect int-bool conversions --- src/debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/debug.h') diff --git a/src/debug.h b/src/debug.h index b9a82f1..9b7137b 100644 --- a/src/debug.h +++ b/src/debug.h @@ -26,7 +26,7 @@ inline void LUA_ASSERT_IMPL(lua_State* const L_, bool const cond_, std::string_v } } -#define LUA_ASSERT(L_, cond_) LUA_ASSERT_IMPL(L_, cond_, #cond_) +#define LUA_ASSERT(L_, cond_) LUA_ASSERT_IMPL(L_, (cond_) ? true : false, #cond_) #define LUA_ASSERT_CODE(code_) code_ class StackChecker -- cgit v1.2.3-55-g6feb