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

version» Context lines:

pike.git/src/post_modules/Nettle/hash.cmod:188:    Pike_error("HashInfo not properly initialized.\n");       ctx = alloca(meta->context_size);    if (!ctx)    SIMPLE_OUT_OF_MEMORY_ERROR("hash", meta->context_size);    meta->init(ctx);       if( get_memory_object_memory(in, (void **)&read_buffer, &len, NULL) )    {    if( bytes ) -  len = MINIMUM(len, MAXIMUM(bytes->u.integer,0) ); +  len = MINIMUM(len, (size_t)MAXIMUM(bytes->u.integer,0) );    meta->update( ctx, len, (const uint8_t*)read_buffer);    goto ret_meta;    }       if (!is_stdio_file(in))    Pike_error("Object not Fd or Fd_ref, or subclass or 8bit buffer.\n");       apply(in, "query_fd", 0);    fd = Pike_sp[-1].u.integer;    pop_stack();