Branch: Tag:

2014-05-26

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

Removed a few casts

284:    copy_shared_string(c[i].pname,sp[-1].u.string);       push_object(clone_object(image_color_program,0)); -  cs=(struct color_struct*) -  get_storage(sp[-1].u.object,image_color_program); +  cs=get_storage(sp[-1].u.object,image_color_program);    cs->rgb.r=(COLORTYPE)c[i].r;    cs->rgb.g=(COLORTYPE)c[i].g;    cs->rgb.b=(COLORTYPE)c[i].b;
954:    if (TYPEOF(sp[-1]) == T_OBJECT)    {    struct color_struct *other; -  other=(struct color_struct*) -  get_storage(sp[-1].u.object,image_color_program); +  other=get_storage(sp[-1].u.object,image_color_program);    if (other&&    other->rgbl.r==THIS->rgbl.r &&    other->rgbl.g==THIS->rgbl.g &&
1179:   {    if (TYPEOF(*v) == T_OBJECT)    { -  struct color_struct *cs=(struct color_struct*) -  get_storage(v->u.object,image_color_program); +  struct color_struct *cs=get_storage(v->u.object,image_color_program);       if (cs)    {
1207:    image_make_color(1);    if (TYPEOF(sp[-1]) == T_OBJECT)    { -  struct color_struct *cs=(struct color_struct*) -  get_storage(sp[-1].u.object,image_color_program); +  struct color_struct *cs=get_storage(sp[-1].u.object,image_color_program);    *rgb=cs->rgb;    pop_stack();    return 1;
1505:       push_object(clone_object(image_color_program,0));    -  cs=(struct color_struct*) -  get_storage(sp[-1].u.object,image_color_program); +  cs=get_storage(sp[-1].u.object,image_color_program);       cs->rgbl.r=(INT32)r;    cs->rgbl.g=(INT32)g;
1552:       push_object(clone_object(image_color_program,0));    -  cs=(struct color_struct*) -  get_storage(sp[-1].u.object,image_color_program); +  cs=get_storage(sp[-1].u.object,image_color_program);       cs->rgb.r=(COLORTYPE)r;    cs->rgb.g=(COLORTYPE)g;