Fixed MSVC warning.

This commit is contained in:
Branimir Karadžić 2022-12-02 19:19:13 -08:00
parent ab207b67a4
commit 30176ceab8

View File

@ -342,7 +342,7 @@ namespace bgfx
template<typename Ty>
constexpr Handle(Ty _handle)
: idx(_handle.idx)
, type(toEnum<Ty>() )
, type(uint16_t(toEnum<Ty>() ) )
{
}