From 404c4122ce8f5dd55593668fc87ae46236a71b92 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 13 Jul 2013 13:02:40 +0200 Subject: [PATCH 1/1] Fix build with MSVC 2013 Also add an assert hinted by MSVC code analysis tool. No functional change. --- src/pawns.cpp | 1 + src/search.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/pawns.cpp b/src/pawns.cpp index 4ca1bb0e..135633a3 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -17,6 +17,7 @@ along with this program. If not, see . */ +#include #include #include "bitboard.h" diff --git a/src/search.cpp b/src/search.cpp index 22dc401c..5ea1f561 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1669,6 +1669,7 @@ void Thread::idle_loop() { Threads.mutex.lock(); assert(searching); + assert(activeSplitPoint); SplitPoint* sp = activeSplitPoint; Threads.mutex.unlock(); -- 2.39.2