mirror of
https://github.com/microsoft/GSL.git
synced 2025-02-07 10:56:53 -05:00
Fix #350 typo in operator | for gsl::byte.
This commit is contained in:
commit
d23f4d931c
@ -75,7 +75,7 @@ constexpr byte& operator|=(byte& l, byte r) noexcept
|
|||||||
|
|
||||||
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
|
constexpr byte& operator&=(byte& l, byte r) noexcept
|
||||||
|
Loading…
x
Reference in New Issue
Block a user