pike.git / src / post_modules / Nettle / hash.cmod

version» Context lines:

pike.git/src/post_modules/Nettle/hash.cmod:323:    if (! THIS->ctx)    Pike_error("HashState not properly initialized.\n");       meta = GET_META(Pike_fp->current_object);    assert(meta);       if (!arg)    length = meta->digest_size;    else    { -  if (arg->type != PIKE_T_INT) +  if (TYPEOF(*arg) != PIKE_T_INT)    Pike_error("Bad argument type.\n");    if (arg->u.integer < 0)    Pike_error("Invalid length, must be positive.\n");    if ((unsigned)arg->u.integer > meta->digest_size)    Pike_error("Unsupported digest length.\n");       length = arg->u.integer;    }       digest = begin_shared_string(length);