Skip to content

Commit

Permalink
fix: add fallthrough comments
Browse files Browse the repository at this point in the history
  • Loading branch information
xtruan committed Jul 13, 2023
1 parent f66c8ad commit 357f9a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chess/smallchesslib.h
Original file line number Diff line number Diff line change
Expand Up @@ -1717,6 +1717,7 @@ void SCL_boardGetPseudoMoves(
{
case 'P':
pawnOffset = 8;
/* FALLTHROUGH */
case 'p':
{
uint8_t square = pieceSquare + pawnOffset;
Expand Down Expand Up @@ -2446,6 +2447,7 @@ int16_t SCL_boardEvaluateStatic(SCL_Board board)

case SCL_POSITION_CHECK:
total += SCL_boardWhitesTurn(board) ? -1 * CHECK_BONUS : CHECK_BONUS;
/* FALLTHROUGH */
case SCL_POSITION_NORMAL:
default:
{
Expand Down

0 comments on commit 357f9a8

Please sign in to comment.