]> git.sesse.net Git - stockfish/blobdiff - src/ucioption.cpp
Mark all compile-time constants as constexpr.
[stockfish] / src / ucioption.cpp
index f648c017de26e934134e7585319a68c2a629878d..bca4a1f1adb2276cfa76100f870198496ad3cb5b 100644 (file)
@@ -56,7 +56,7 @@ bool CaseInsensitiveLess::operator() (const string& s1, const string& s2) const
 void init(OptionsMap& o) {
 
   // at most 2^32 clusters.
-  const int MaxHashMB = Is64Bit ? 131072 : 2048;
+  constexpr int MaxHashMB = Is64Bit ? 131072 : 2048;
 
   o["Debug Log File"]        << Option("", on_logger);
   o["Contempt"]              << Option(12, -100, 100);