diff --git a/lib/compass/grid_builder.rb b/lib/compass/grid_builder.rb index 981769fe..a0f5862c 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.bytes.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="")