diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-10-15 13:10:52 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-10-15 13:10:52 -0700 |
commit | c420f450d0a2b1f26d4043334bb8b6524fea4b07 (patch) | |
tree | c78fad4226f66e4003a2991a26d31cf11298a196 /do_tris.c | |
parent | 2900d7a7e7929414268cb142bf00c57d370e1396 (diff) |
Stop casting return value of malloc() and calloc()
Not needed in C89 and later, and may hide errors
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'do_tris.c')
-rw-r--r-- | do_tris.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -91,7 +91,7 @@ InitTriangles(XParms xp, Parms p, int64_t reps) iradius = (int) (radius + 0.5); numPoints = (p->objects) * NUM_POINTS; - points = (XPoint *)malloc(numPoints * sizeof(XPoint)); + points = malloc(numPoints * sizeof(XPoint)); curPoint = points; x = iradius; y = iradius; |