diff options
Diffstat (limited to 'lib/plum/frame.rb')
-rw-r--r-- | lib/plum/frame.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/plum/frame.rb b/lib/plum/frame.rb index 1a4b402..17f24b9 100644 --- a/lib/plum/frame.rb +++ b/lib/plum/frame.rb @@ -1,6 +1,5 @@ -# frozen-string-literal: true - using Plum::BinaryString + module Plum class Frame FRAME_TYPES = { @@ -168,7 +167,7 @@ module Plum cur = buffer.byteshift(9 + length) type_value, flags_value, r_sid = cur.byteslice(3, 6).unpack("CCN") # r = r_sid >> 31 # currently not used - stream_id = r_sid # & ~(1 << 31) + stream_id = r_sid & ~(1 << 31) frame = (SUB_CLASSES[type_value] || Frame::Unknown).allocate frame.send(:initialize_base, |