Use int conversion for Option class

The current implementation generates warnings on MSVC. However, we have
no real use cases for double-typed UCI option values now. Also parameter
tuning only accepts following three types:

  int, Value, Score

closes https://github.com/official-stockfish/Stockfish/pull/4505

No functional change
This commit is contained in:
MinetaS
2023-04-07 15:23:04 +00:00
committed by Joost VandeVondele
parent 5d258e168f
commit 6e63dd63a4
3 changed files with 5 additions and 5 deletions

View File

@@ -61,7 +61,7 @@ public:
Option& operator=(const std::string&);
void operator<<(const Option&);
operator double() const;
operator int() const;
operator std::string() const;
bool operator==(const char*) const;