Skip to content

Commit abb4077

Browse files
committed
Shrink engine UCI name
Some GUI have problems with long names. Reported by George Speight. No functional change.
1 parent 90abcac commit abb4077

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/misc.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ static const string Tag = "";
4545
const string engine_info(bool to_uci) {
4646

4747
const string months("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec");
48-
const string cpu64(Is64Bit ? " 64bit" : "");
49-
const string popcnt(HasPopCnt ? " SSE4.2" : "");
50-
5148
string month, day, year;
5249
stringstream s, date(__DATE__); // From compiler, format is "Sep 21 2008"
5350

@@ -58,10 +55,12 @@ const string engine_info(bool to_uci) {
5855
date >> month >> day >> year;
5956

6057
s << Tag << string(Tag.empty() ? "" : " ") << setfill('0') << setw(2) << day
61-
<< "-" << setw(2) << (1 + months.find(month) / 4) << "-" << year.substr(2);
58+
<< setw(2) << (1 + months.find(month) / 4) << year.substr(2);
6259
}
6360

64-
s << cpu64 << popcnt << (to_uci ? "\nid author ": " by ")
61+
s << (Is64Bit ? " 64" : "")
62+
<< (HasPopCnt ? " SSE4.2" : "")
63+
<< (to_uci ? "\nid author ": " by ")
6564
<< "Tord Romstad, Marco Costalba and Joona Kiiski";
6665

6766
return s.str();

0 commit comments

Comments
 (0)