Unneccesary braces
This commit is contained in:
parent
4d734d0cc8
commit
f6b438c0f8
|
@ -6,7 +6,7 @@
|
|||
/* By: tosuman </var/spool/mail/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);
|
||||
i = 0;
|
||||
while (++i < SIZE - cols[col] && i <= col)
|
||||
{
|
||||
if (cols[col - i] == cols[col] + i)
|
||||
return (0);
|
||||
}
|
||||
return (1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue