X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fvalue.h;h=29fcf5fb99f153b9ea3a512cd1dfdd1fe1e84fd7;hp=4e75d376963896250c1a90d2bdb7066f8a4e3c97;hb=2f21ec39adcfc3a2ce4d4fd08eb1fa688c4e67a7;hpb=5dc23121215039938a9ef4e59ae934312774571c diff --git a/src/value.h b/src/value.h index 4e75d376..29fcf5fb 100644 --- a/src/value.h +++ b/src/value.h @@ -7,12 +7,12 @@ it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + Stockfish is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program. If not, see . */ @@ -121,7 +121,7 @@ inline void operator/= (Value &v, int i) { v = Value(int(v) / i); } inline Value value_mate_in(int ply) { return Value(VALUE_MATE - Value(ply)); } - + inline Value value_mated_in(int ply) { return Value(-VALUE_MATE + Value(ply)); }