Skip to content

Commit

Permalink
Correct return type
Browse files Browse the repository at this point in the history
  • Loading branch information
fel1x-developer committed Mar 17, 2024
1 parent 3c96463 commit aa50e8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ lutok::state::to_boolean(const int index) const
/// \param index The second parameter to lua_tointeger.
///
/// \return The return value of lua_tointeger.
long
int
lutok::state::to_integer(const int index) const
{
assert(is_number(index));
Expand Down
2 changes: 1 addition & 1 deletion state.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class state {
void set_metatable(int) const;
void set_table(int);
[[nodiscard]] bool to_boolean(int) const;
[[nodiscard]] long to_integer(int) const;
[[nodiscard]] int to_integer(int) const;
template< typename Type > Type* to_userdata(int);
[[nodiscard]] std::string to_string(int) const;
static int upvalue_index(int);
Expand Down

0 comments on commit aa50e8a

Please sign in to comment.