Skip to content

Commit

Permalink
Code format - (Clang-format)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 30, 2023
1 parent 18656ac commit 3f311e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lua/functions/lua_functions_loader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class LuaFunctionsLoader {
getNumber(lua_State* L, int32_t arg) {
return static_cast<T>(static_cast<int64_t>(lua_tonumber(L, arg)));
}
template<typename T>
template <typename T>
static typename std::enable_if<std::is_integral<T>::value || std::is_floating_point<T>::value, T>::type getNumber(lua_State* L, int32_t arg) {
auto number = lua_tonumber(L, arg);
// If there is overflow, we return the value 0
Expand Down

0 comments on commit 3f311e2

Please sign in to comment.