Used fmt::Format instead of sprintf

This commit is contained in:
O1L 2015-02-22 22:53:26 +04:00
parent 4d27198ad7
commit deebe3ca1f
1 changed files with 1 additions and 4 deletions

View File

@ -73,10 +73,7 @@ std::string CgBinaryDisasm::AddConstDisAsm()
const u32 z = GetData(data[2]); const u32 z = GetData(data[2]);
const u32 w = GetData(data[3]); const u32 w = GetData(data[3]);
char buf[1024]; 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);
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);
} }
std::string CgBinaryDisasm::AddTexDisAsm() std::string CgBinaryDisasm::AddTexDisAsm()