From 9b027d2a34445b8deb6099131ded7c531b1df2a9 Mon Sep 17 00:00:00 2001 From: Harrand Date: Sun, 17 Nov 2024 19:35:09 +0000 Subject: [PATCH] [core.lua] lua parse arguments now accepts double aswell as float (for numbers) --- include/tz/core/lua.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tz/core/lua.hpp b/include/tz/core/lua.hpp index 249bb335e9..8d31f6f398 100644 --- a/include/tz/core/lua.hpp +++ b/include/tz/core/lua.hpp @@ -267,7 +267,7 @@ namespace tz { v = tz_must(lua_stack_get_bool(i.value + 1)); } - else if constexpr(std::is_same_v) + else if constexpr(std::is_same_v || std::is_same_v) { v = tz_must(lua_stack_get_number(i.value + 1)); }