Unneccesary braces

This commit is contained in:
Timo Schmidt 2023-04-01 02:16:41 +02:00
parent 4d734d0cc8
commit f6b438c0f8
1 changed files with 1 additions and 3 deletions

View File

@ -6,7 +6,7 @@
/* By: tosuman </var/spool/mail/tosuman> +#+ +:+ +#+ */ /* By: tosuman </var/spool/mail/tosuman> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/30 17:05:04 by tosuman #+# #+# */ /* Created: 2023/03/30 17:05:04 by tosuman #+# #+# */
/* Updated: 2023/03/30 17:05:06 by tosuman ### ########.fr */ /* Updated: 2023/04/01 02:15:31 by tischmid ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -45,10 +45,8 @@ int is_valid_board(int cols[SIZE], int col)
return (0); return (0);
i = 0; i = 0;
while (++i < SIZE - cols[col] && i <= col) while (++i < SIZE - cols[col] && i <= col)
{
if (cols[col - i] == cols[col] + i) if (cols[col - i] == cols[col] + i)
return (0); return (0);
}
return (1); return (1);
} }