File tree Expand file tree Collapse file tree
tools/clang/unittests/HLSLExec Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -757,21 +757,21 @@ class TestVector {
757757 DestEltSize = 1 ; // FP8
758758 break ;
759759 }
760- ConvertInfo.SrcInfo .SrcStride = ( UINT) getStride ();
761- ConvertInfo.SrcInfo .SrcSize = ( UINT) getTotalBytes ();
760+ ConvertInfo.SrcInfo .SrcStride = static_cast < UINT>( getStride () );
761+ ConvertInfo.SrcInfo .SrcSize = static_cast < UINT>( getTotalBytes () );
762762
763763 ConvertInfo.DestInfo .DestLayout = MatrixLayout;
764764 ConvertInfo.DestInfo .DestStride = 0 ;
765- ConvertInfo.DestInfo .NumRows = ( UINT) getNumVectors ();
766- ConvertInfo.DestInfo .NumColumns = ( UINT) getVectorSize ();
765+ ConvertInfo.DestInfo .NumRows = static_cast < UINT>( getNumVectors () );
766+ ConvertInfo.DestInfo .NumColumns = static_cast < UINT>( getVectorSize () );
767767
768768 if (MatrixLayout == D3D12_LINEAR_ALGEBRA_MATRIX_LAYOUT_ROW_MAJOR) {
769769 ConvertInfo.DestInfo .DestStride =
770- (( UINT) getVectorSize () * DestEltSize + 15 ) & ~15 ;
770+ (static_cast < UINT>( getVectorSize () ) * DestEltSize + 15 ) & ~15 ;
771771 } else if (MatrixLayout ==
772772 D3D12_LINEAR_ALGEBRA_MATRIX_LAYOUT_COLUMN_MAJOR) {
773773 ConvertInfo.DestInfo .DestStride =
774- (( UINT) getNumVectors () * DestEltSize + 15 ) & ~15 ;
774+ (static_cast < UINT>( getNumVectors () ) * DestEltSize + 15 ) & ~15 ;
775775 }
776776
777777 // Get destination size using preview interface
You can’t perform that action at this time.
0 commit comments