Skip to content

Commit

Permalink
ensure char is signed
Browse files Browse the repository at this point in the history
  • Loading branch information
tryingsomestuff committed Jul 11, 2020
1 parent 58ab7c4 commit 1a4e55e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/searcher.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ struct Searcher{
ScoreType drawScore();

template <bool pvnode> ScoreType pvs(ScoreType alpha, ScoreType beta, const Position & p, DepthType depth, unsigned int ply, PVList & pv, DepthType & seldepth, bool isInCheck, bool cutNode, bool canPrune, const std::vector<MiniMove> * skipMoves = nullptr);
ScoreType qsearch(ScoreType alpha, ScoreType beta, const Position & p, unsigned int ply, DepthType & seldepth, unsigned int qply, bool qRoot, bool pvnode, char isInCheckHint = -1);
ScoreType qsearch(ScoreType alpha, ScoreType beta, const Position & p, unsigned int ply, DepthType & seldepth, unsigned int qply, bool qRoot, bool pvnode, signed char isInCheckHint = -1);
ScoreType qsearchNoPruning(ScoreType alpha, ScoreType beta, const Position & p, unsigned int ply, DepthType & seldepth);
bool SEE_GE(const Position & p, const Move & m, ScoreType threshold)const;
ScoreType SEE(const Position & p, const Move & m)const;
Expand Down
2 changes: 1 addition & 1 deletion Source/searcherQSearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ inline ScoreType qDeltaMargin(const Position & p) {
return delta + Values[P_wq+PieceShift];
}

ScoreType Searcher::qsearch(ScoreType alpha, ScoreType beta, const Position & p, unsigned int ply, DepthType & seldepth, unsigned int qply, bool qRoot, bool pvnode, char isInCheckHint){
ScoreType Searcher::qsearch(ScoreType alpha, ScoreType beta, const Position & p, unsigned int ply, DepthType & seldepth, unsigned int qply, bool qRoot, bool pvnode, signed char isInCheckHint){
if (stopFlag) return STOPSCORE; // no time verification in qsearch, too slow
++stats.counters[Stats::sid_qnodes];

Expand Down

0 comments on commit 1a4e55e

Please sign in to comment.