]> git.sesse.net Git - stockfish/blobdiff - src/ucioption.cpp
Merge remote-tracking branch 'upstream/master'
[stockfish] / src / ucioption.cpp
index ee84e25323753d7e67710c86dcefc0bd1aa0600e..e10ba00a36f7147e1df9148dd6fa6a9c5c107c61 100644 (file)
@@ -88,7 +88,6 @@ void init(OptionsMap& o) {
   o["SyzygyProbeDepth"]      << Option(1, 1, 100);
   o["Syzygy50MoveRule"]      << Option(true);
   o["SyzygyProbeLimit"]      << Option(7, 0, 7);
-  o["Use NNUE"]              << Option(true, on_use_NNUE);
   o["EvalFile"]              << Option(EvalFileDefaultName, on_eval_file);
   o["RPCServerAddress"]      << Option("<empty>", on_rpc_server_address);
 }
@@ -138,9 +137,9 @@ Option::Option(double v, int minv, int maxv, OnChange f) : type("spin"), min(min
 Option::Option(const char* v, const char* cur, OnChange f) : type("combo"), min(0), max(0), on_change(f)
 { defaultValue = v; currentValue = cur; }
 
-Option::operator double() const {
+Option::operator int() const {
   assert(type == "check" || type == "spin");
-  return (type == "spin" ? stof(currentValue) : currentValue == "true");
+  return (type == "spin" ? std::stoi(currentValue) : currentValue == "true");
 }
 
 Option::operator std::string() const {