mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 05:07:46 +00:00
Fix Intel warnings and init_search_stack argument
Should be a reference not a copy! Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+1
-1
@@ -80,7 +80,7 @@ private:
|
|||||||
void score_qcaptures();
|
void score_qcaptures();
|
||||||
Move pick_move_from_list();
|
Move pick_move_from_list();
|
||||||
int find_best_index();
|
int find_best_index();
|
||||||
int MovePicker::find_best_index(Bitboard* squares, int values[]);
|
int find_best_index(Bitboard* squares, int values[]);
|
||||||
|
|
||||||
const Position& pos;
|
const Position& pos;
|
||||||
Move ttMove, mateKiller, killer1, killer2;
|
Move ttMove, mateKiller, killer1, killer2;
|
||||||
|
|||||||
+2
-2
@@ -238,7 +238,7 @@ namespace {
|
|||||||
Depth depth, int ply, int threadID);
|
Depth depth, int ply, int threadID);
|
||||||
void sp_search(SplitPoint *sp, int threadID);
|
void sp_search(SplitPoint *sp, int threadID);
|
||||||
void sp_search_pv(SplitPoint *sp, int threadID);
|
void sp_search_pv(SplitPoint *sp, int threadID);
|
||||||
void init_search_stack(SearchStack ss);
|
void init_search_stack(SearchStack& ss);
|
||||||
void init_search_stack(SearchStack ss[]);
|
void init_search_stack(SearchStack ss[]);
|
||||||
void init_node(const Position &pos, SearchStack ss[], int ply, int threadID);
|
void init_node(const Position &pos, SearchStack ss[], int ply, int threadID);
|
||||||
void update_pv(SearchStack ss[], int ply);
|
void update_pv(SearchStack ss[], int ply);
|
||||||
@@ -1879,7 +1879,7 @@ namespace {
|
|||||||
|
|
||||||
// init_search_stack() initializes a search stack at the beginning of a
|
// init_search_stack() initializes a search stack at the beginning of a
|
||||||
// new search from the root.
|
// new search from the root.
|
||||||
void init_search_stack(SearchStack ss) {
|
void init_search_stack(SearchStack& ss) {
|
||||||
|
|
||||||
ss.pv[0] = MOVE_NONE;
|
ss.pv[0] = MOVE_NONE;
|
||||||
ss.pv[1] = MOVE_NONE;
|
ss.pv[1] = MOVE_NONE;
|
||||||
|
|||||||
Reference in New Issue
Block a user