From 6232a13a33ff8a2fd16ce05f0751603ec38c1cc2 Mon Sep 17 00:00:00 2001 From: Pratik Dixit Date: Sun, 13 May 2018 00:28:58 -0700 Subject: [PATCH] Fix compiler warning messages --- src/Network.cpp | 6 +++--- src/syzygy/tbprobe.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Network.cpp b/src/Network.cpp index 9d8d3f03a..8398664e6 100644 --- a/src/Network.cpp +++ b/src/Network.cpp @@ -135,10 +135,10 @@ std::vector Network::winograd_transform_f(const std::vector& f, // transpose(G.dot(f).dot(G.transpose())) // U matrix is transposed for better memory layout in SGEMM auto U = std::vector(WINOGRAD_TILE * outputs * channels); - auto G = std::array{ 1.0, 0.0, 0.0, + auto G = std::array{{ 1.0, 0.0, 0.0, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, - 0.0, 0.0, 1.0}; + 0.0, 0.0, 1.0 }}; auto temp = std::array{}; for (auto o = 0; o < outputs; o++) { @@ -1070,7 +1070,7 @@ Network::Netresult Network::get_scored_moves_internal(const BoardHistory& pos, N std::vector winrate_out(1); // Data layout is input_data[(c * height + h) * width + w] input_data.reserve(get_input_channels() * width * height); - for (int c = 0; c < get_input_channels() - 3; ++c) { + for (unsigned int c = 0; c < get_input_channels() - 3; ++c) { for (int i = 0; i < 64; ++i) { input_data.emplace_back(net_t(planes.bit[c][i])); } diff --git a/src/syzygy/tbprobe.cpp b/src/syzygy/tbprobe.cpp index abb75c6f4..eb4daa461 100644 --- a/src/syzygy/tbprobe.cpp +++ b/src/syzygy/tbprobe.cpp @@ -1464,7 +1464,6 @@ bool Tablebases::root_probe(Position& pos, const std::vector ranks; ranks.reserve(rootMoves.size()); int best_rank = -1000; @@ -1474,6 +1473,7 @@ bool Tablebases::root_probe(Position& pos, const std::vectorget_move(), st); + int dtz; // Calculate dtz for the current move counting from the root position if (pos.rule50_count() == 0) {