summaryrefslogtreecommitdiff
path: root/type.cpp
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2023-11-07 18:55:32 -0500
committerGlenn Smith <glenn@vector35.com>2023-11-13 17:22:16 -0500
commit1716451033063812056349156332128984540962 (patch)
tree7a12ab7cdb9c15ffadfaa42651e7fe044ff7befa /type.cpp
parent0cc0b1ce9f7e1bcf4b8fac581ab4e5a354906ba4 (diff)
Add fmt library to api
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);
}
}