summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorGravatar bunnei2021-06-23 15:31:04 -0700
committerGravatar GitHub2021-06-23 15:31:04 -0700
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.gz
yuzu-1b09d6628b7f268c256c12e4d3e373724671d2f1.tar.xz
yuzu-1b09d6628b7f268c256c12e4d3e373724671d2f1.zip
Merge pull request #6517 from lioncash/fmtlib
externals: Update fmt to 8.0.0
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>
53 std::string out; 53 std::string out;
54 out.reserve(std::size(data) * pad_width); 54 out.reserve(std::size(data) * pad_width);
55 55
56 const auto format_str = fmt::runtime(upper ? "{:02X}" : "{:02x}");
56 for (const u8 c : data) { 57 for (const u8 c : data) {
57 out += fmt::format(upper ? "{:02X}" : "{:02x}", c); 58 out += fmt::format(format_str, c);
58 } 59 }
59 60
60 return out; 61 return out;