diff options
author | Lioncash <mathew1800@gmail.com> | 2021-06-23 15:59:56 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2021-06-23 19:48:21 +0200 |
commit | d0b1f2bd05a2fcadbb4c148be2105e337dd986e8 (patch) | |
tree | 17e7abb608ab936ae6696e0507c9d1441256c66a /src/common/hex_util.h | |
parent | externals: Update dynarmic to allow fmt compilation to succeed (diff) | |
download | yuzu-d0b1f2bd05a2fcadbb4c148be2105e337dd986e8.tar yuzu-d0b1f2bd05a2fcadbb4c148be2105e337dd986e8.tar.gz yuzu-d0b1f2bd05a2fcadbb4c148be2105e337dd986e8.tar.bz2 yuzu-d0b1f2bd05a2fcadbb4c148be2105e337dd986e8.tar.lz yuzu-d0b1f2bd05a2fcadbb4c148be2105e337dd986e8.tar.xz yuzu-d0b1f2bd05a2fcadbb4c148be2105e337dd986e8.tar.zst yuzu-d0b1f2bd05a2fcadbb4c148be2105e337dd986e8.zip |
Diffstat (limited to 'src/common/hex_util.h')
-rw-r--r-- | src/common/hex_util.h | 3 |
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; |