From 054cd41cf631417abed2975d4c372866043c734e Mon Sep 17 00:00:00 2001 From: k Date: Tue, 21 Oct 2025 19:07:03 -0400 Subject: [PATCH] updated some types to u64 in c code --- headers/help.h | 4 ++-- src/help.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/headers/help.h b/headers/help.h index 7b57f31..eb142f0 100644 --- a/headers/help.h +++ b/headers/help.h @@ -2,8 +2,8 @@ #define HELP_H #include "types.h" -long long fullSet(sets *s); -long long fullSetBoth(game *g); +unsigned long long fullSet(sets *s); +unsigned long long fullSetBoth(game *g); void print_bitboard(long long bitboard); unsigned long long *findSet(game *g, long long bit); unsigned long long *charToSet(game *g, char c); diff --git a/src/help.c b/src/help.c index 3f84553..896544a 100644 --- a/src/help.c +++ b/src/help.c @@ -1,11 +1,11 @@ #include #include "types.h" -long long fullSet(sets *s) { +unsigned long long fullSet(sets *s) { return s->bishops | s->king | s->knights | s->pawns | s->queen | s->rooks; } -long long fullSetBoth(game *g) { +unsigned long long fullSetBoth(game *g) { return fullSet(&g->white) ^ fullSet(&g->black); } @@ -25,7 +25,7 @@ void print_bitboard(long long bitboard) { printf("\n"); } -long long *findSet(game *g, long long bit) { +unsigned long long *findSet(game *g, long long bit) { if (g->white.pawns & bit) { return &g->white.pawns; } else if (g->white.knights & bit) { @@ -55,7 +55,7 @@ long long *findSet(game *g, long long bit) { } } -long long *charToSet(game *g, char c) { +unsigned long long *charToSet(game *g, char c) { switch (c) { case 'P': return &g->white.pawns;