Skip to content

Commit

Permalink
[core.lua] lua parse arguments now accepts double aswell as float (fo…
Browse files Browse the repository at this point in the history
…r numbers)
  • Loading branch information
harrand committed Nov 17, 2024
1 parent ae5c6e8 commit 9b027d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/tz/core/lua.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ namespace tz
{
v = tz_must(lua_stack_get_bool(i.value + 1));
}
else if constexpr(std::is_same_v<T, float>)
else if constexpr(std::is_same_v<T, float> || std::is_same_v<T, double>)
{
v = tz_must(lua_stack_get_number(i.value + 1));
}
Expand Down

0 comments on commit 9b027d2

Please sign in to comment.