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:
cj5716
2023-10-24 07:43:49 +08:00
committed by Joost VandeVondele
parent 49ece9f791
commit d6a5c2b085
5 changed files with 16 additions and 16 deletions
+2 -2
View 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));
}