Skip to content

Commit

Permalink
Fix gcc PGO build on Windows
Browse files Browse the repository at this point in the history
This fixes the issue official-stockfish#1375 of the PGO builds failing under Windows:
official-stockfish#1375

Solution found during this discussion in the fishcooking forum:
https://groups.google.com/forum/?fromgroups=#!topic/fishcooking/RjIPgeFFLPQ

Closes official-stockfish#1408.

No functional change.
  • Loading branch information
Ronald de Man authored and snicolet committed Feb 12, 2018
1 parent 4c57cf0 commit 860223c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/uci.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ namespace {

// Read option name (can contain spaces)
while (is >> token && token != "value")
name += string(" ", name.empty() ? 0 : 1) + token;
name += (name.empty() ? "" : " ") + token;

// Read option value (can contain spaces)
while (is >> token)
value += string(" ", value.empty() ? 0 : 1) + token;
value += (value.empty() ? "" : " ") + token;

if (Options.count(name))
Options[name] = value;
Expand Down

0 comments on commit 860223c

Please sign in to comment.