pike.git / src / modules / Image / encodings / xcf.c

version» Context lines:

pike.git/src/modules/Image/encodings/xcf.c:1177:    rgb_group pix = {0,0,0};    rgb_group apix= {255,255,255}; /* avoid may use uninitialized warnings */       INT_TYPE rle, bpp, span, shrink;    unsigned int l, x=0, y=0, cx, cy;    ONERROR err;    get_all_args( "_decode_tiles", args, "%o%O%a%i%i%O%i%d%d",    &io, &ao, &tiles, &rle, &bpp, &cmapo, &shrink, &rxs, &rys);       -  if( !(i = (struct image *)get_storage( io, image_program ))) +  if( !(i = get_storage( io, image_program )))    Pike_error("Wrong type object argument 1 (image)\n");    -  if(ao && !(a = (struct image *)get_storage( ao, image_program ))) +  if(ao && !(a = get_storage( ao, image_program )))    Pike_error("Wrong type object argument 2 (image)\n");       if( cmapo && -  !(cmap=(struct neo_colortable *)get_storage(cmapo, +  !(cmap=get_storage(cmapo,    image_colortable_program)))    Pike_error("Wrong type object argument 4 (colortable)\n");       for(l=0; l<(unsigned int)tiles->size; l++)    if(TYPEOF(tiles->item[l]) != T_OBJECT)    Pike_error("Wrong type array argument 3 (tiles)\n");       if(a && ((i->xsize != a->xsize) || (i->ysize != a->ysize)))    Pike_error("Image and alpha objects are not identically sized.\n");