c++17: use std::size

This commit is contained in:
scribam 2018-09-05 22:52:31 +02:00 committed by Ivan
parent 7724161c14
commit d7bb59cd99
11 changed files with 21 additions and 21 deletions

View file

@ -444,7 +444,7 @@ template<typename T> std::string FragmentProgramDecompiler::GetSRC(T src)
properties.has_wpos_input = true;
break;
default:
if (dst.src_attr_reg_num < sizeof(reg_table) / sizeof(reg_table[0]))
if (dst.src_attr_reg_num < std::size(reg_table))
{
ret += m_parr.AddParam(PF_PARAM_IN, getFloatTypeName(4), reg_table[dst.src_attr_reg_num]);
}