projects
/
stockfish
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b356e0f
)
Fix a MSVC warning
author
Marco Costalba
<mcostalba@gmail.com>
Sat, 24 Mar 2012 09:14:21 +0000
(10:14 +0100)
committer
Marco Costalba
<mcostalba@gmail.com>
Sat, 24 Mar 2012 09:14:21 +0000
(10:14 +0100)
Not correct warning about use of an uninitialized
variable. The warning is not correct becuase we can
never reach the warned code when in SpNode, anyhow
the fix is simple.
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp
patch
|
blob
|
history
diff --git
a/src/search.cpp
b/src/search.cpp
index 8d1b43b0f0ff1ac74cb832e72a281fdda1bf9792..fb5d375e8e591a58a91fb0e9afe8a147846b426c 100644
(file)
--- a/
src/search.cpp
+++ b/
src/search.cpp
@@
-564,6
+564,7
@@
namespace {
{
tte = NULL;
ttMove = excludedMove = MOVE_NONE;
+ ttValue = VALUE_ZERO;
sp = ss->sp;
bestMove = sp->bestMove;
threatMove = sp->threatMove;