add_expression_zlib_adler32.patch

Vajrasky Kok, 12/27/2013 04:44 PM

Download (610 Bytes)

View differences:

ext/zlib/zlib.c (working copy)
432 432
 * +adler+. If +string+ is omitted, it returns the Adler-32 initial value. If
433 433
 * +adler+ is omitted, it assumes that the initial value is given to +adler+.
434 434
 *
435
 * FIXME: expression.
435
 * Example usage:
436
 *
437
 *   require "zlib"
438
 *
439
 *   data = "foo"
440
 *   puts "Adler32 checksum: #{Zlib.adler32(data).to_s(16)}"
441
 *   #=> Adler32 checksum: 2820145
442
 *
436 443
 */
437 444
static VALUE
438 445
rb_zlib_adler32(int argc, VALUE *argv, VALUE klass)