Switch ord for the more compatibly .unpack("C"), Fixes #3431
git-svn-id: file:///home/svn/framework3/trunk@11468 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
4a1f45c633
commit
be1ee243bf
|
@ -39,8 +39,8 @@ class BitStruct
|
|||
|
||||
if length_byte == 1
|
||||
rest = 8 - length_bit
|
||||
mask = ["0"*offset_bit + "1"*length + "0"*rest].pack("B8")[0].ord
|
||||
mask2 = ["1"*offset_bit + "0"*length + "1"*rest].pack("B8")[0].ord
|
||||
mask = ["0"*offset_bit + "1"*length + "0"*rest].pack("B8")[0,1].unpack('C')[0]
|
||||
mask2 = ["1"*offset_bit + "0"*length + "1"*rest].pack("B8")[0,1].unpack('C')[0]
|
||||
|
||||
cl.class_eval do
|
||||
if divisor
|
||||
|
|
Loading…
Reference in New Issue