From b550faf877745ea3abc02a7ef47ed2459f257d98 Mon Sep 17 00:00:00 2001 From: Tyrann Date: Sat, 16 Sep 2006 16:31:06 +0930 Subject: [PATCH] [PATCH] qbsp: Remove unnecessary cast of malloc return value Signed-off-by: Tyrann --- qbsp/solidbsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qbsp/solidbsp.c b/qbsp/solidbsp.c index 65584653..7bc4bbd6 100644 --- a/qbsp/solidbsp.c +++ b/qbsp/solidbsp.c @@ -492,7 +492,7 @@ LinkConvexFaces(surface_t *planelist, node_t *leafnode) // write the list of faces, and free the originals leaffaces += count; - leafnode->markfaces = (face_t **)malloc(sizeof(face_t *) * (count + 1)); /* FIXME */ + leafnode->markfaces = malloc(sizeof(face_t *) * (count + 1)); /* FIXME */ i = 0; for (surf = planelist; surf; surf = pnext) {