Browse Source

Fixed MSVC warning.

Branimir Karadžić 3 years ago
parent
commit
30176ceab8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bgfx_p.h

+ 1 - 1
src/bgfx_p.h

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