File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
839839lutok::state::to_integer (const int index) const
840840{
841841 assert (is_number (index));
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ class state {
124124 void set_metatable (int ) const ;
125125 void set_table (int );
126126 [[nodiscard]] bool to_boolean (int ) const ;
127- [[nodiscard]] long to_integer (int ) const ;
127+ [[nodiscard]] int to_integer (int ) const ;
128128 template < typename Type > Type* to_userdata (int );
129129 [[nodiscard]] std::string to_string (int ) const ;
130130 static int upvalue_index (int );
Original file line number Diff line number Diff line change @@ -802,7 +802,7 @@ ATF_TEST_CASE_BODY(push_cxx_function__fail_anything)
802802 lua_setglobal (raw (state), " cxx_divide" );
803803
804804 ATF_REQUIRE (luaL_dostring (raw (state), " return cxx_divide(-3, -1)" ) != 0 );
805- ATF_REQUIRE_MATCH (" Unhandled exception " , lua_tostring (raw (state), -1 ));
805+ ATF_REQUIRE_MATCH (" Cannot divide negative numbers " , lua_tostring (raw (state), -1 ));
806806 lua_pop (raw (state), 1 );
807807}
808808
You can’t perform that action at this time.
0 commit comments