mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
Used fmt::Format instead of sprintf
This commit is contained in:
parent
4d27198ad7
commit
deebe3ca1f
1 changed files with 1 additions and 4 deletions
|
@ -73,10 +73,7 @@ std::string CgBinaryDisasm::AddConstDisAsm()
|
|||
const u32 z = GetData(data[2]);
|
||||
const u32 w = GetData(data[3]);
|
||||
|
||||
char buf[1024];
|
||||
sprintf(buf, "{0x%08x(%g), 0x%08x(%g), 0x%08x(%g), 0x%08x(%g)}", x, (float&)x, y, (float&)y, z, (float&)z, w, (float&)w);
|
||||
|
||||
return fmt::format(buf);
|
||||
return fmt::Format("{0x%08x(%g), 0x%08x(%g), 0x%08x(%g), 0x%08x(%g)}", x, (float&)x, y, (float&)y, z, (float&)z, w, (float&)w);
|
||||
}
|
||||
|
||||
std::string CgBinaryDisasm::AddTexDisAsm()
|
||||
|
|
Loading…
Add table
Reference in a new issue