From be7e5a99aa926d1a823031701453f9aa5c438ef6 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Fri, 17 May 2024 10:04:48 +0200 Subject: Fix LUA_ASSERT not showing the line number properly --- src/macros_and_utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/macros_and_utils.h b/src/macros_and_utils.h index d71c9da..1427ef1 100644 --- a/src/macros_and_utils.h +++ b/src/macros_and_utils.h @@ -73,10 +73,10 @@ template #else // NDEBUG -inline void LUA_ASSERT_IMPL(lua_State* L_, bool cond_, char const* file_, size_t const line_, char const* txt_) +inline void LUA_ASSERT_IMPL(lua_State* L_, bool cond_, char const* file_, int const line_, char const* txt_) { if (!cond_) { - raise_luaL_error(L_, "LUA_ASSERT %s:%llu '%s'", file_, line_, txt_); + raise_luaL_error(L_, "LUA_ASSERT %s:%d '%s'", file_, line_, txt_); } } -- cgit v1.2.3-55-g6feb