summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-06-24 00:31:04 +0200
committerGitHub <noreply@github.com>2021-06-24 00:31:04 +0200
commit1b09d6628b7f268c256c12e4d3e373724671d2f1 (patch)
treeb1679d1c4bc044144798746332860939fe43d109 /src/common
parentMerge pull request #6504 from Kelebek1/samples-played (diff)
parentGeneral: Resolve fmt specifiers to adhere to 8.0.0 API where applicable (diff)
downloadyuzu-1b09d6628b7f268c256c12e4d3e373724671d2f1.tar
yuzu-1b09d6628b7f268c256c12e4d3e373724671d2f1.tar.gz
yuzu-1b09d6628b7f268c256c12e4d3e373724671d2f1.tar.bz2
yuzu-1b09d6628b7f268c256c12e4d3e373724671d2f1.tar.lz
yuzu-1b09d6628b7f268c256c12e4d3e373724671d2f1.tar.xz
yuzu-1b09d6628b7f268c256c12e4d3e373724671d2f1.tar.zst
yuzu-1b09d6628b7f268c256c12e4d3e373724671d2f1.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/hex_util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/hex_util.h b/src/common/hex_util.h
index a8d414fb8..f5f9e4507 100644
--- a/src/common/hex_util.h
+++ b/src/common/hex_util.h
@@ -53,8 +53,9 @@ template <typename ContiguousContainer>
std::string out;
out.reserve(std::size(data) * pad_width);
+ const auto format_str = fmt::runtime(upper ? "{:02X}" : "{:02x}");
for (const u8 c : data) {
- out += fmt::format(upper ? "{:02X}" : "{:02x}", c);
+ out += fmt::format(format_str, c);
}
return out;