Explorar o código

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;
Enrico Mancuso %!s(int64=3) %!d(string=hai) anos
pai
achega
d581a4a367
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/common/settings.cpp

+ 1 - 0
src/common/settings.cpp

@@ -151,6 +151,7 @@ void UpdateRescalingInfo() {
         ASSERT(false);
         ASSERT(false);
         info.up_scale = 1;
         info.up_scale = 1;
         info.down_shift = 0;
         info.down_shift = 0;
+        break;
     }
     }
     info.up_factor = static_cast<f32>(info.up_scale) / (1U << info.down_shift);
     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;
     info.down_factor = static_cast<f32>(1U << info.down_shift) / info.up_scale;