fixing warning implicit fallthrough (intentional fallthrough)

This commit is contained in:
Clément Le Bihan
2020-10-15 22:35:05 +02:00
parent 484d332b05
commit 6334b4805a
2 changed files with 107 additions and 106 deletions
+1
View File
@@ -129,6 +129,7 @@ namespace ComSquare::PPU
secondLowByte = this->_vram->read_internal((tileAddress + 17) % VRAMSIZE);
result = ((secondHighByte & (1U << shift)) | ((secondLowByte & (1U << shift)) << 1U));
result = (shift - 2 >= 0) ? result >> (shift - 2) : result << ((shift - 2) * -1);
__attribute__((fallthrough));
case 2:
result += ((highByte & (1U << shift)) | ((lowByte & (1U << shift)) << 1U)) >> shift;
default: