X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fnnue%2Fnnue_common.h;h=e159c5dc3dac0f0300e572a9985404bc4b9fadde;hb=4f0fecad8a0f5258114f63f0ac0c905a54d65219;hp=a42a86c980d8fb69047a3ecc871bfdf098634df2;hpb=31d0b7fe932458d6661f4d4c2ce88502086616c5;p=stockfish diff --git a/src/nnue/nnue_common.h b/src/nnue/nnue_common.h index a42a86c9..e159c5dc 100644 --- a/src/nnue/nnue_common.h +++ b/src/nnue/nnue_common.h @@ -103,7 +103,7 @@ namespace Stockfish::Eval::NNUE { else { std::uint8_t u[sizeof(IntType)]; - typename std::make_unsigned::type v = 0; + std::make_unsigned_t v = 0; stream.read(reinterpret_cast(u), sizeof(IntType)); for (std::size_t i = 0; i < sizeof(IntType); ++i) @@ -128,7 +128,7 @@ namespace Stockfish::Eval::NNUE { else { std::uint8_t u[sizeof(IntType)]; - typename std::make_unsigned::type v = value; + std::make_unsigned_t v = value; std::size_t i = 0; // if constexpr to silence the warning about shift by 8