Skip to content

Commit

Permalink
Add static_cast to unique_index arg to silence MSVC warning
Browse files Browse the repository at this point in the history
  • Loading branch information
zach2good authored and ThePhD committed Jun 25, 2022
1 parent eba8662 commit dca62a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/sol/stack.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dca62a0

Please sign in to comment.