projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(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
8d1b43b
..
fb5d375
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;