From 3e99e0cc27181dd49fe7bb2e4d0f21836ff78529 Mon Sep 17 00:00:00 2001 From: Heinz Gies Date: Tue, 10 Sep 2019 13:28:46 +0200 Subject: [PATCH] Fix bad opperator presedene --- actix-http/src/ws/frame.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actix-http/src/ws/frame.rs b/actix-http/src/ws/frame.rs index a461847e6..9f93897e7 100644 --- a/actix-http/src/ws/frame.rs +++ b/actix-http/src/ws/frame.rs @@ -29,7 +29,7 @@ impl Parser { let first = src[0]; let second = src[1]; let finished = first & 0x80 != 0; - let rsv: u8 = first & 0x70 >> 4; + let rsv: u8 = (first & 0x70) >> 4; // check masking let masked = second & 0x80 != 0;