mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Add static_cast to unique_index arg to silence MSVC warning
This commit is contained in:
parent
eba86625b7
commit
dca62a0f02
|
@ -207,7 +207,7 @@ namespace sol {
|
|||
int push_count = push(L, std::forward<T>(arg));
|
||||
sol_c_assert(push_count == 1);
|
||||
std::size_t unique_index = static_cast<std::size_t>(luaL_len(L, tableindex) + 1u);
|
||||
lua_rawseti(L, tableindex, unique_index);
|
||||
lua_rawseti(L, tableindex, static_cast<int>(unique_index));
|
||||
}
|
||||
|
||||
} // namespace stack_detail
|
||||
|
|
Loading…
Reference in New Issue
Block a user