diff --git a/lib/compass/grid_builder.rb b/lib/compass/grid_builder.rb index 600516a7..eaa360f9 100644 --- a/lib/compass/grid_builder.rb +++ b/lib/compass/grid_builder.rb @@ -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="")