mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 22:47:03 +00:00
c++17: use std::size
This commit is contained in:
parent
7724161c14
commit
d7bb59cd99
11 changed files with 21 additions and 21 deletions
|
|
@ -178,7 +178,7 @@ template<typename T> std::string CgBinaryDisasm::GetSrcDisAsm(T src)
|
|||
{
|
||||
case 0x00: ret += reg_table[0]; 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 += fmt::format("%s[%s]", perspective_correction.c_str(), input_attr_reg.c_str());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue