From 4a6c2b286c866d7a36ad5f1bb10c5af7707d5257 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 8 Feb 2016 10:58:21 -0800 Subject: [PATCH] Fixed compile warning. --- src/bgfx_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bgfx_p.h b/src/bgfx_p.h index 81552917..594310d2 100644 --- a/src/bgfx_p.h +++ b/src/bgfx_p.h @@ -1502,7 +1502,7 @@ namespace bgfx , BGFX_CONFIG_MAX_MATRIX_CACHE ); m_draw.m_matrix = _cache; - m_draw.m_num = bx::uint32_min(_cache+_num, BGFX_CONFIG_MAX_MATRIX_CACHE-1) - _cache; + m_draw.m_num = uint16_t(bx::uint32_min(_cache+_num, BGFX_CONFIG_MAX_MATRIX_CACHE-1) - _cache); } void setIndexBuffer(IndexBufferHandle _handle, uint32_t _firstIndex, uint32_t _numIndices)