aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Mancuso <55850895+HidroSaphire@users.noreply.github.com>2022-11-09 15:34:26 +0100
committerGitHub <noreply@github.com>2022-11-09 15:34:26 +0100
commit3efb76498af7fb6f89e37dceab7cfc170ef3e92c (patch)
treead7a62b9e3a296a93876f5569fc2106fd0d64fae
parent728eca47a14b73d1fc9f781facdad1aae84c2c32 (diff)
Add break statement in default cases
According to the contributing page (https://github.com/yuzu-emu/yuzu/wiki/Contributing) the default cases should have a break statement default: // Yes, even break for the last case break;
-rw-r--r--src/common/settings.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp
index 0a560ebb72..8173462cb3 100644
--- a/src/common/settings.cpp
+++ b/src/common/settings.cpp
@@ -151,6 +151,7 @@ void UpdateRescalingInfo() {
ASSERT(false);
info.up_scale = 1;
info.down_shift = 0;
+ break;
}
info.up_factor = static_cast<f32>(info.up_scale) / (1U << info.down_shift);
info.down_factor = static_cast<f32>(1U << info.down_shift) / info.up_scale;