Skip to content

Commit aa50e8a

Browse files
Correct return type
1 parent 3c96463 commit aa50e8a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

state.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ lutok::state::to_boolean(const int index) const
835835
/// \param index The second parameter to lua_tointeger.
836836
///
837837
/// \return The return value of lua_tointeger.
838-
long
838+
int
839839
lutok::state::to_integer(const int index) const
840840
{
841841
assert(is_number(index));

state.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class state {
133133
void set_metatable(int) const;
134134
void set_table(int);
135135
[[nodiscard]] bool to_boolean(int) const;
136-
[[nodiscard]] long to_integer(int) const;
136+
[[nodiscard]] int to_integer(int) const;
137137
template< typename Type > Type* to_userdata(int);
138138
[[nodiscard]] std::string to_string(int) const;
139139
static int upvalue_index(int);

0 commit comments

Comments
 (0)