removed unnecessary .to_a
This commit is contained in:
parent
d9d3857ee0
commit
a7a9a1bbba
@ -15,7 +15,7 @@ module Compass
|
||||
|
||||
class << self
|
||||
def crc(chunkdata='')
|
||||
chunkdata.unpack('C*').to_a.inject(0xffffffff){|crc, byte| CRC_TABLE[(crc ^ byte) & 0xff] ^ (crc >> 8) } ^ 0xffffffff
|
||||
chunkdata.unpack('C*').inject(0xffffffff){|crc, byte| CRC_TABLE[(crc ^ byte) & 0xff] ^ (crc >> 8) } ^ 0xffffffff
|
||||
end
|
||||
|
||||
def chunk(type, data="")
|
||||
|
Loading…
Reference in New Issue
Block a user