Fix truncation warning with explicit cast

This commit is contained in:
Anthony Miles 2019-03-06 20:18:25 +13:00
parent d98f47c64c
commit ce61520e15
1 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ void WalkIndexBuffer_SSE41(XTL::INDEX16 & LowIndex, XTL::INDEX16 & HighIndex, XT
}
__m128i *unalignedIndices = (__m128i*) pIndexData;\
__m128i min = _mm_set1_epi16(USHRT_MAX);
__m128i min = _mm_set1_epi16((short)USHRT_MAX);
__m128i max = _mm_setzero_si128();
// Min / max over index data
@ -72,7 +72,7 @@ void WalkIndexBuffer_SSE41(XTL::INDEX16 & LowIndex, XTL::INDEX16 & HighIndex, XT
min = _mm_minpos_epu16(min);
// horizontal max (using minpos)
max = _mm_subs_epu16(_mm_set1_epi16(USHRT_MAX), max); //invert
max = _mm_subs_epu16(_mm_set1_epi16((short)USHRT_MAX), max); //invert
max = _mm_minpos_epu16(max);
// Get the min and max out