mirror of
https://github.com/NixOS/nix
synced 2025-07-06 09:11:47 +02:00
Fix consts and casts
This commit is contained in:
parent
c581143e0c
commit
df8bfe84cc
6 changed files with 14 additions and 14 deletions
|
@ -171,7 +171,7 @@ enum struct WorkerProto::Op : uint64_t
|
|||
*/
|
||||
inline Sink & operator << (Sink & sink, WorkerProto::Op op)
|
||||
{
|
||||
return sink << (uint64_t) op;
|
||||
return sink << static_cast<uint64_t>(op);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -181,7 +181,7 @@ inline Sink & operator << (Sink & sink, WorkerProto::Op op)
|
|||
*/
|
||||
inline std::ostream & operator << (std::ostream & s, WorkerProto::Op op)
|
||||
{
|
||||
return s << (uint64_t) op;
|
||||
return s << static_cast<uint64_t>(op);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue