1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 08:43:09 +00:00
BadFish/src
lucasart 6044f25d71 Fix Hash in bench
The compiler tries to cast Options["Hash"] into a string, using:

Option::operator std::string() const {
  assert(type == "string");
  return currentValue;
}

And, as expected, the assert() fails.

std::to_string() would be the right solution, but it's C++11. And using a stringstream is too much code to
achieve so little. Let's keep it the way it was: hardcoded (ie. default hash defined in two places).

No functional change.
2014-08-07 18:51:07 +08:00
..
benchmark.cpp Fix Hash in bench 2014-08-07 18:51:07 +08:00
bitbase.cpp Fix a warning with MSVC in 'analyze' mode 2014-06-14 12:46:58 +02:00
bitboard.cpp Small code style reformatting 2014-07-29 06:52:32 +08:00
bitboard.h Revert "Generalize shift_bb() to handle double pushes" 2014-04-21 20:56:12 +02:00
bitcount.h Use compiler intrinsic instead of assembly for popcnt 2014-07-03 18:22:53 +08:00
endgame.cpp Revert back KBPsK to latest Gary's version 2014-05-04 09:34:22 +02:00
endgame.h Simplify pawnless endgame evaluation 2014-01-18 17:22:54 +01:00
evaluate.cpp Document Threat[] indices 2014-07-30 07:06:48 +08:00
evaluate.h Small renaming in Tracing 2014-06-09 05:30:18 +09:00
main.cpp Move args parsing to UCI::loop 2014-04-12 13:51:52 +02:00
Makefile Use compiler intrinsic instead of assembly for popcnt 2014-07-03 18:22:53 +08:00
material.cpp Move game_phase() to Position 2014-06-20 23:44:46 +02:00
material.h Move game_phase() to Position 2014-06-20 23:44:46 +02:00
misc.cpp Restore development version 2014-05-31 23:34:36 +02:00
misc.h Additional renaming from DON 2014-02-14 09:42:50 +01:00
movegen.cpp Minor stuff scattered around 2014-04-28 17:07:43 +02:00
movegen.h Update copyright year 2014-01-02 01:49:18 +01:00
movepick.cpp Fix issues detected by Coverity Scan 2014-04-26 09:33:50 +02:00
movepick.h Sync some common names 2014-04-06 11:26:12 +02:00
notation.cpp Remove some useless casts 2014-04-27 11:44:16 +02:00
notation.h Some more work in pretty_pv 2014-04-06 10:15:11 +02:00
pawns.cpp Small code style reformatting 2014-07-29 06:52:32 +08:00
pawns.h Scale down endgames with pawns on one or two adjacent files 2014-06-25 16:01:00 -04:00
platform.h Update copyright year 2014-01-02 01:49:18 +01:00
position.cpp Remove insufficient material rule 2014-08-06 18:42:10 +08:00
position.h Remove useless code in Position::pretty() 2014-08-06 07:04:27 +08:00
psqtab.h Remove RookOn7th and merge values into psqt 2014-04-24 08:53:46 +02:00
rkiss.h Move magic random to RKISS 2014-02-12 14:47:36 +01:00
search.cpp Ensure printing UCI info in multi-pv case 2014-08-02 22:16:45 +08:00
search.h Avoid to use nullChild 2014-06-06 11:12:05 +02:00
thread.cpp Retire FakeSplit 2014-07-09 07:19:06 +08:00
thread.h Retire FakeSplit 2014-07-09 07:19:06 +08:00
timeman.cpp Don't need floor() in timeman.cpp 2014-04-27 19:10:00 +02:00
timeman.h Fix Intel compiler warnings 2014-04-27 12:02:36 +02:00
tt.cpp Raise max Hash to 1TB 2014-07-01 18:37:18 +08:00
tt.h size_t cast in TranspositionTable::first_entry() 2014-07-03 18:23:56 +08:00
types.h Pack 3 TT entries in 32 bytes cluster 2014-06-28 14:06:32 -04:00
uci.cpp Retire divide command 2014-08-04 13:54:09 +08:00
ucioption.cpp Reduce minimum memory requirement by 16MB 2014-08-05 11:42:48 +08:00
ucioption.h Move args parsing to UCI::loop 2014-04-12 13:51:52 +02:00