X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftypes.h;h=aa015ce5ef9042c7ffa65ad5846bfaabb7d29839;hp=7c1b72b144eee090de89539d29701c1b457083a3;hb=60590577f2117dbc9305184660a3fe8fe6f89f85;hpb=9742fb10fd83e82ad760e4cac5cef3d6dff670ed diff --git a/src/types.h b/src/types.h index 7c1b72b1..aa015ce5 100644 --- a/src/types.h +++ b/src/types.h @@ -1,7 +1,8 @@ /* Stockfish, a UCI chess playing engine derived from Glaurung 2.1 Copyright (C) 2004-2008 Tord Romstad (Glaurung author) - Copyright (C) 2008-2016 Marco Costalba, Joona Kiiski, Tord Romstad + Copyright (C) 2008-2015 Marco Costalba, Joona Kiiski, Tord Romstad + Copyright (C) 2015-2016 Marco Costalba, Joona Kiiski, Gary Linscott, Tord Romstad Stockfish is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -354,7 +355,7 @@ inline Piece make_piece(Color c, PieceType pt) { return Piece((c << 3) | pt); } -inline PieceType type_of(Piece pc) { +inline PieceType type_of(Piece pc) { return PieceType(pc & 7); }