summaryrefslogtreecommitdiff
path: root/Source/UnitTests/Core/PowerPC/Jit64Common/ConvertDoubleToSingle.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-12-05 23:58:04 +0100
committerGitHub <noreply@github.com>2020-12-05 23:58:04 +0100
commitc8cb330df04431b8414efaffaee01cf984572d33 (patch)
treea7006b0fa6d0f63782455f6c30b7963722737c1a /Source/UnitTests/Core/PowerPC/Jit64Common/ConvertDoubleToSingle.cpp
parentd8b9a040edd52a2d577a09deb44aee42705c5c40 (diff)
parent585899dba39fdad6dd5875a96007d5b4f1bb41f7 (diff)
Merge pull request #9310 from leoetlino/compile-time-errors-format
Turn format string issues into compile-time errors
Diffstat (limited to 'Source/UnitTests/Core/PowerPC/Jit64Common/ConvertDoubleToSingle.cpp')
-rw-r--r--Source/UnitTests/Core/PowerPC/Jit64Common/ConvertDoubleToSingle.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/UnitTests/Core/PowerPC/Jit64Common/ConvertDoubleToSingle.cpp b/Source/UnitTests/Core/PowerPC/Jit64Common/ConvertDoubleToSingle.cpp
index 41ca31b273..aa4324968d 100644
--- a/Source/UnitTests/Core/PowerPC/Jit64Common/ConvertDoubleToSingle.cpp
+++ b/Source/UnitTests/Core/PowerPC/Jit64Common/ConvertDoubleToSingle.cpp
@@ -14,6 +14,7 @@
#include "Core/PowerPC/Jit64Common/Jit64AsmCommon.h"
#include "Core/PowerPC/Jit64Common/Jit64PowerPCState.h"
+#include <fmt/format.h>
#include <gtest/gtest.h>
namespace
@@ -109,7 +110,7 @@ TEST(Jit64, ConvertDoubleToSingle)
const u32 expected = ConvertToSingle(input);
const u32 actual = routines.wrapped_cdts(input);
- printf("%016llx -> %08x == %08x\n", input, actual, expected);
+ fmt::print("{:016x} -> {:08x} == {:08x}\n", input, actual, expected);
EXPECT_EQ(expected, actual);
}