summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/frontend/ir/patch.cpp
diff options
context:
space:
mode:
authorliushuyu <liushuyu011@gmail.com>2022-01-08 01:48:53 -0700
committerliushuyu <liushuyu011@gmail.com>2022-01-08 01:49:26 -0700
commit42f653ab6fc8ab07ba0db4ffb4d2b0267115a588 (patch)
treec74cc1a5b8acd9e7d919dfe5d0357b98f6e5b61d /src/shader_recompiler/frontend/ir/patch.cpp
parent26f4e92c1fa5486f4047990ee7351f18f7fe4f1c (diff)
logging: adapt to changes in fmt 8.1
Diffstat (limited to 'src/shader_recompiler/frontend/ir/patch.cpp')
-rw-r--r--src/shader_recompiler/frontend/ir/patch.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/frontend/ir/patch.cpp b/src/shader_recompiler/frontend/ir/patch.cpp
index 4c956a970..d8730284e 100644
--- a/src/shader_recompiler/frontend/ir/patch.cpp
+++ b/src/shader_recompiler/frontend/ir/patch.cpp
@@ -13,14 +13,14 @@ bool IsGeneric(Patch patch) noexcept {
u32 GenericPatchIndex(Patch patch) {
if (!IsGeneric(patch)) {
- throw InvalidArgument("Patch {} is not generic", patch);
+ throw InvalidArgument("Patch {} is not generic", static_cast<u64>(patch));
}
return (static_cast<u32>(patch) - static_cast<u32>(Patch::Component0)) / 4;
}
u32 GenericPatchElement(Patch patch) {
if (!IsGeneric(patch)) {
- throw InvalidArgument("Patch {} is not generic", patch);
+ throw InvalidArgument("Patch {} is not generic", static_cast<u64>(patch));
}
return (static_cast<u32>(patch) - static_cast<u32>(Patch::Component0)) % 4;
}