mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +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:
parent
49d52b8266
commit
da7d872eda
2 changed files with 12 additions and 12 deletions
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue