mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 02:57:11 +08:00
Fix build with MSVC 2013
Also add an assert hinted by MSVC code analysis tool. No functional change.
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "bitboard.h"
|
#include "bitboard.h"
|
||||||
|
|||||||
@@ -1669,6 +1669,7 @@ void Thread::idle_loop() {
|
|||||||
Threads.mutex.lock();
|
Threads.mutex.lock();
|
||||||
|
|
||||||
assert(searching);
|
assert(searching);
|
||||||
|
assert(activeSplitPoint);
|
||||||
SplitPoint* sp = activeSplitPoint;
|
SplitPoint* sp = activeSplitPoint;
|
||||||
|
|
||||||
Threads.mutex.unlock();
|
Threads.mutex.unlock();
|
||||||
|
|||||||
Reference in New Issue
Block a user