diff options
| author | 2021-03-24 01:36:59 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:24 -0400 | |
| commit | 83a283fa867d0a09742faff11d9115acc95ea556 (patch) | |
| tree | 1f78f927285a2230116b1c46293cac02282d0bf2 /src | |
| parent | shader: Fix F2I (diff) | |
| download | yuzu-83a283fa867d0a09742faff11d9115acc95ea556.tar.gz yuzu-83a283fa867d0a09742faff11d9115acc95ea556.tar.xz yuzu-83a283fa867d0a09742faff11d9115acc95ea556.zip | |
shader: Minor style nits
Diffstat (limited to 'src')
| -rw-r--r-- | src/shader_recompiler/frontend/maxwell/translate/impl/floating_point_conversion_integer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/floating_point_conversion_integer.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/floating_point_conversion_integer.cpp index 7c5a72800..ef55b9c75 100644 --- a/src/shader_recompiler/frontend/maxwell/translate/impl/floating_point_conversion_integer.cpp +++ b/src/shader_recompiler/frontend/maxwell/translate/impl/floating_point_conversion_integer.cpp | |||
| @@ -69,7 +69,8 @@ std::pair<f64, f64> ClampBounds(DestFormat format, bool is_signed) { | |||
| 69 | case DestFormat::I64: | 69 | case DestFormat::I64: |
| 70 | return {static_cast<f64>(std::numeric_limits<s64>::max()), | 70 | return {static_cast<f64>(std::numeric_limits<s64>::max()), |
| 71 | static_cast<f64>(std::numeric_limits<s64>::min())}; | 71 | static_cast<f64>(std::numeric_limits<s64>::min())}; |
| 72 | default: {} | 72 | default: |
| 73 | break; | ||
| 73 | } | 74 | } |
| 74 | } else { | 75 | } else { |
| 75 | switch (format) { | 76 | switch (format) { |
| @@ -82,7 +83,8 @@ std::pair<f64, f64> ClampBounds(DestFormat format, bool is_signed) { | |||
| 82 | case DestFormat::I64: | 83 | case DestFormat::I64: |
| 83 | return {static_cast<f64>(std::numeric_limits<u64>::max()), | 84 | return {static_cast<f64>(std::numeric_limits<u64>::max()), |
| 84 | static_cast<f64>(std::numeric_limits<u64>::min())}; | 85 | static_cast<f64>(std::numeric_limits<u64>::min())}; |
| 85 | default: {} | 86 | default: |
| 87 | break; | ||
| 86 | } | 88 | } |
| 87 | } | 89 | } |
| 88 | throw NotImplementedException("Invalid destination format {}", format); | 90 | throw NotImplementedException("Invalid destination format {}", format); |