edox: Add a couple of forgotten casts

This commit is contained in:
Kim Woelders 2020-05-01 14:10:12 +02:00
parent a35ea61980
commit 893ccb4bce
1 changed files with 4 additions and 4 deletions

View File

@ -153,7 +153,7 @@ BuildObj(Object * obj, char *var, char *param)
switch (obj->type) switch (obj->type)
{ {
case IMG: case IMG:
img = obj->object; img = (Img_ *) obj->object;
if (!img) if (!img)
{ {
img = EMALLOC(Img_, 1); img = EMALLOC(Img_, 1);
@ -183,7 +183,7 @@ BuildObj(Object * obj, char *var, char *param)
case BR: case BR:
break; break;
case FONT: case FONT:
fn = obj->object; fn = (Font_ *) obj->object;
if (!fn) if (!fn)
{ {
fn = EMALLOC(Font_, 1); fn = EMALLOC(Font_, 1);
@ -214,7 +214,7 @@ BuildObj(Object * obj, char *var, char *param)
} }
break; break;
case P: case P:
p = obj->object; p = (P_ *) obj->object;
if (!p) if (!p)
{ {
p = EMALLOC(P_, 1); p = EMALLOC(P_, 1);
@ -231,7 +231,7 @@ BuildObj(Object * obj, char *var, char *param)
case TEXT: case TEXT:
break; break;
case PAGE: case PAGE:
pg = obj->object; pg = (Page *) obj->object;
if (!pg) if (!pg)
{ {
pg = EMALLOC(Page, 1); pg = EMALLOC(Page, 1);