Switch ord for the more compatibly .unpack("C"), Fixes #3431

git-svn-id: file:///home/svn/framework3/trunk@11468 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2011-01-04 16:15:56 +00:00
parent 4a1f45c633
commit be1ee243bf
1 changed files with 2 additions and 2 deletions

View File

@ -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