diff options
| author | Mat M <mathew1800@gmail.com> | 2017-01-05 14:27:27 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-05 14:27:27 -0500 |
| commit | 495580637ffd8b847d7df43f60bf0d8ccc65b3ba (patch) | |
| tree | 14b8ceb1204b4839c453a08f407b4395b70e3d51 /Source/Core/Common/MathUtil.cpp | |
| parent | 9da6982ac30bec46f29530d07f86766dd44236bf (diff) | |
| parent | 23d99f2f2c6f3e16dce2371141702d07bef40e95 (diff) | |
Merge pull request #4606 from BhaaLseN/clang-format-union
specify custom brace style to fix unions
Diffstat (limited to 'Source/Core/Common/MathUtil.cpp')
| -rw-r--r-- | Source/Core/Common/MathUtil.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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; }; |
