diff --git a/src/bgfx_p.h b/src/bgfx_p.h index 7c0a712b1..31ede49d0 100644 --- a/src/bgfx_p.h +++ b/src/bgfx_p.h @@ -342,7 +342,7 @@ namespace bgfx template constexpr Handle(Ty _handle) : idx(_handle.idx) - , type(toEnum() ) + , type(uint16_t(toEnum() ) ) { }