summaryrefslogtreecommitdiff
path: root/type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'type.cpp')
-rw-r--r--type.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/type.cpp b/type.cpp
index 383ef3e8..0e686a0a 100644
--- a/type.cpp
+++ b/type.cpp
@@ -1233,8 +1233,6 @@ std::vector<TypeDefinitionLine> Type::GetLines(const TypeContainer& types, const
string Type::GetSizeSuffix(size_t size)
{
- char sizeStr[32];
-
switch (size)
{
case 0:
@@ -1252,8 +1250,7 @@ string Type::GetSizeSuffix(size_t size)
case 16:
return ".o";
default:
- snprintf(sizeStr, sizeof(sizeStr), ".%" PRIuPTR, size);
- return sizeStr;
+ return fmt::format(".{}", size);
}
}