Skip to content

Commit

Permalink
fix 32-bit compile (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasart committed Jul 4, 2020
1 parent fa43416 commit 419f7ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/htable.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ int hash_permille(void);

extern unsigned hashDate;
extern HashEntry *HashTable;
extern uint64_t HashCount;
extern size_t HashCount;
4 changes: 2 additions & 2 deletions src/uci.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

static pthread_t Timer = 0;

uint64_t uciHash = 2;
size_t uciHash = 2;
int64_t uciTimeBuffer = 60;
bool uciChess960 = false;

Expand All @@ -45,7 +45,7 @@ static void intro(void)
{
uci_puts("id name Demolito " VERSION "\nid author lucasart");
uci_printf("option name Contempt type spin default %d min -100 max 100\n", Contempt);
uci_printf("option name Hash type spin default %" PRIu64 " min 1 max 1048576\n", uciHash);
uci_printf("option name Hash type spin default %zu min 1 max 1048576\n", uciHash);
uci_puts("option name Ponder type check default false");
uci_printf("option name Threads type spin default %zu min 1 max 256\n", WorkersCount);
uci_printf("option name Time Buffer type spin default %" PRId64 " min 0 max 1000\n", uciTimeBuffer);
Expand Down

0 comments on commit 419f7ca

Please sign in to comment.