From d581a4a367bfe750ad571a1b8ee8961c132411aa Mon Sep 17 00:00:00 2001 From: Enrico Mancuso <55850895+HidroSaphire@users.noreply.github.com> Date: Wed, 9 Nov 2022 15:34:26 +0100 Subject: [PATCH] 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; --- src/common/settings.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/settings.cpp b/src/common/settings.cpp index 0a560ebb7..8173462cb 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(info.up_scale) / (1U << info.down_shift); info.down_factor = static_cast(1U << info.down_shift) / info.up_scale;