From 9e0807f1b1f1d383d67a6a23afbe69b6ab594b20 Mon Sep 17 00:00:00 2001 From: Neil MacIntosh Date: Tue, 6 Sep 2016 18:45:53 -0700 Subject: [PATCH] Fix typo in operator | for gsl::byte. --- gsl/gsl_byte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gsl/gsl_byte b/gsl/gsl_byte index 91ce9d2..5134032 100644 --- a/gsl/gsl_byte +++ b/gsl/gsl_byte @@ -75,7 +75,7 @@ constexpr byte& operator|=(byte& l, byte r) noexcept constexpr byte operator|(byte l, byte r) noexcept { - return byte(static_cast(l) + static_cast(r)); + return byte(static_cast(l) | static_cast(r)); } constexpr byte& operator&=(byte& l, byte r) noexcept