mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 05:07:46 +00:00
Small formatting improvements
Changes some C style casts to C++ style, and fixes some incorrect comments and variable names. closes #4845 No functional change
This commit is contained in:
committed by
Joost VandeVondele
parent
49ece9f791
commit
d6a5c2b085
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user