mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Fix typo in operator | for gsl::byte.
This commit is contained in:
parent
a360b81805
commit
9e0807f1b1
@ -75,7 +75,7 @@ constexpr byte& operator|=(byte& l, byte r) noexcept
|
||||
|
||||
constexpr byte operator|(byte l, byte r) noexcept
|
||||
{
|
||||
return byte(static_cast<unsigned char>(l) + static_cast<unsigned char>(r));
|
||||
return byte(static_cast<unsigned char>(l) | static_cast<unsigned char>(r));
|
||||
}
|
||||
|
||||
constexpr byte& operator&=(byte& l, byte r) noexcept
|
||||
|
Loading…
Reference in New Issue
Block a user