]> git.sesse.net Git - stockfish/blobdiff - src/nnue/nnue_common.h
Fix compilation after recent merge.
[stockfish] / src / nnue / nnue_common.h
index cf90850126b55b90e3ddd646d656066c44fddc11..f9cd7fbb5973928d9a1edb1f89111e2a0a3263a8 100644 (file)
@@ -130,11 +130,11 @@ inline void write_little_endian(std::ostream& stream, IntType value) {
         {
             for (; i + 1 < sizeof(IntType); ++i)
             {
-                u[i] = (std::uint8_t) v;
+                u[i] = std::uint8_t(v);
                 v >>= 8;
             }
         }
-        u[i] = (std::uint8_t) v;
+        u[i] = std::uint8_t(v);
 
         stream.write(reinterpret_cast<char*>(u), sizeof(IntType));
     }