Skip to content
Snippets Groups Projects
Commit b4439c83 authored by gback's avatar gback
Browse files

completed bug fix for unsigned long bitshift

parent 0c98e636
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ static void set_queen(struct board* board, int x, int y, int N) {
}
static void unset_queen(struct board* board, int x, int y, int N) {
int idx = x * N + y;
board->bits[idx / WORD_BITS] &= ~(1L << (idx % WORD_BITS));
board->bits[idx / WORD_BITS] &= ~(1UL << (idx % WORD_BITS));
}
static int solved(struct board* board, int N) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment