From 8ffff78d585b2cf033cd56f21fc660e45f5fcab7 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 13 Mar 2022 14:02:11 -0700 Subject: [PATCH] htmlparse.y: remove some unnecessary casts --- lib/common/htmlparse.y | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/common/htmlparse.y b/lib/common/htmlparse.y index 82a5c8355..a3393a7b6 100644 --- a/lib/common/htmlparse.y +++ b/lib/common/htmlparse.y @@ -281,11 +281,11 @@ static void setCell(htmlcell_t *cp, void *obj, char kind) { cp->ruled = HTML_VRULE; if(kind == HTML_TEXT) - cp->child.u.txt = (htmltxt_t*)obj; + cp->child.u.txt = obj; else if (kind == HTML_IMAGE) - cp->child.u.img = (htmlimg_t*)obj; + cp->child.u.img = obj; else - cp->child.u.tbl = (htmltbl_t*)obj; + cp->child.u.tbl = obj; } /* mkLabel: @@ -296,9 +296,9 @@ static htmllabel_t *mkLabel(void *obj, char kind) { lp->kind = kind; if (kind == HTML_TEXT) - lp->u.txt = (htmltxt_t*)obj; + lp->u.txt = obj; else - lp->u.tbl = (htmltbl_t*)obj; + lp->u.tbl = obj; return lp; } -- 2.40.0