Branch: Tag:

2014-05-26

2014-05-26 15:31:21 by Per Hedbor <ph@opera.com>

Removed a few casts

111:    push_int(source->xsize);    push_int(source->ysize);    o[i]=clone_object(image_program,2); -  img[i]=(struct image*)get_storage(o[i],image_program); +  img[i]=get_storage(o[i],image_program);    push_object(o[i]);    }   
207:    Pike_error("The images in the array given as argument 2 to image->orient have different sizes\n");    }    for(i=0; i<4; i++) -  img[i]=(struct image*)sp[1-args].u.array->item[i].u.object->storage; +  img[i]=get_storage(sp[1-args].u.array->item[i].u.object,image_program);    pop_n_elems(args);    push_int(this->xsize);    push_int(this->ysize);    o[4]=clone_object(image_program,2); -  img[4]=(struct image*)get_storage(o[4],image_program); +  img[4]=get_storage(o[4],image_program);    push_object(o[4]);    w=1;    }