lib/chunky_png/chunk.rb in chunky_png-0.7.0 vs lib/chunky_png/chunk.rb in chunky_png-0.7.1
- old
+ new
@@ -29,10 +29,10 @@
end
# Verifies the CRC of a chunk.
# @param [String] type The chunk's type.
# @param [String] content The chunk's content.
- # @param [Fixnum] content The chunk's content.
+ # @param [Integer] content The chunk's content.
# @raise [RuntimeError] An exception is raised if the found CRC value
# is not equal to the expected CRC value.
def self.verify_crc!(type, content, found_crc)
expected_crc = Zlib.crc32(content, Zlib.crc32(type))
raise "Chuck CRC mismatch!" if found_crc != expected_crc