From 23d99f2f2c6f3e16dce2371141702d07bef40e95 Mon Sep 17 00:00:00 2001 From: BhaaL Date: Wed, 4 Jan 2017 12:45:40 +0100 Subject: specify custom brace style to fix unions BreakBeforeBraces: Allman apparently includes all styles, except for AfterUnion (which is false) when using clang-format -dump-config --- Source/Core/Common/MathUtil.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Source/Core/Common/MathUtil.cpp') diff --git a/Source/Core/Common/MathUtil.cpp b/Source/Core/Common/MathUtil.cpp index 1f0983889c..bdb45e89f9 100644 --- a/Source/Core/Common/MathUtil.cpp +++ b/Source/Core/Common/MathUtil.cpp @@ -104,7 +104,8 @@ const int frsqrte_expected_dec[] = { double ApproximateReciprocalSquareRoot(double val) { - union { + union + { double valf; s64 vali; }; @@ -178,7 +179,8 @@ double ApproximateReciprocal(double val) // The workaround for this is to just use namespace std within this function's scope // That way on real toolchains it will use the std:: variant like normal. using namespace std; - union { + union + { double valf; s64 vali; }; -- cgit v1.2.3