1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 08:43:09 +00:00

Fix crash in debug mode

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Joona Kiiski 2010-02-22 15:42:12 +02:00 committed by Marco Costalba
parent c67b9916f1
commit 80810e4951

View file

@ -2819,7 +2819,9 @@ namespace {
assert(p.is_ok()); assert(p.is_ok());
assert(sstck != NULL); assert(sstck != NULL);
assert(ply >= 0 && ply < PLY_MAX); assert(ply >= 0 && ply < PLY_MAX);
assert(*bestValue >= -VALUE_INFINITE && *bestValue <= *alpha); assert(*bestValue >= -VALUE_INFINITE);
assert( ( pvNode && *bestValue <= *alpha)
|| (!pvNode && *bestValue < beta ));
assert(!pvNode || *alpha < beta); assert(!pvNode || *alpha < beta);
assert(beta <= VALUE_INFINITE); assert(beta <= VALUE_INFINITE);
assert(depth > Depth(0)); assert(depth > Depth(0));