From be8859d07cd1faa59aef5e8169a1d60e15975705 Mon Sep 17 00:00:00 2001 From: Chris Ross Date: Fri, 24 Oct 2014 15:25:41 -0700 Subject: [PATCH] Cleanup. --- src/Microsoft.AspNet.WebSockets.Protocol/Utilities.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.AspNet.WebSockets.Protocol/Utilities.cs b/src/Microsoft.AspNet.WebSockets.Protocol/Utilities.cs index 6531bea1a5..7b0b3186da 100644 --- a/src/Microsoft.AspNet.WebSockets.Protocol/Utilities.cs +++ b/src/Microsoft.AspNet.WebSockets.Protocol/Utilities.cs @@ -129,7 +129,7 @@ namespace Microsoft.AspNet.WebSockets.Protocol state.AdditionalBytesExpected--; // Each continuation byte carries 6 bits of data 0x10bbbbbb. - state.CurrentDecodeBits = (state.CurrentDecodeBits << 6) | b & 0x3F; + state.CurrentDecodeBits = (state.CurrentDecodeBits << 6) | (b & 0x3F); if (state.AdditionalBytesExpected == 1 && state.CurrentDecodeBits >= 0x360 && state.CurrentDecodeBits <= 0x37F) {