pike.git / src / modules / Gz / zlibmod.c

version» Context lines:

pike.git/src/modules/Gz/zlibmod.c:1194:    Pike_error("Gz.adler32: illegal or missing argument 1 (expected string)\n");    if (sp[-args].u.string->size_shift)    Pike_error("Cannot input wide string to Gz.adler32\n");       if (args>1) {    if (TYPEOF(sp[1-args]) != T_INT)    Pike_error("Gz.adler32: illegal argument 2 (expected integer)\n");    else    crc=(unsigned INT32)sp[1-args].u.integer;    } else -  crc=0; +  crc=1;       crc=adler32(crc,    (unsigned char*)sp[-args].u.string->str,    (unsigned INT32)(sp[-args].u.string->len));       pop_n_elems(args);    push_int64((INT64)crc);   }      static void gz_deflate_size( INT32 args )