diff options
Diffstat (limited to 'do_traps.c')
-rw-r--r-- | do_traps.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -41,7 +41,7 @@ InitTrapezoids(XParms xp, Parms p, int64_t reps) size = p->special; numPoints = (p->objects) * NUM_POINTS; - points = (XPoint *)malloc(numPoints * sizeof(XPoint)); + points = malloc(numPoints * sizeof(XPoint)); curPoint = points; x = size; y = 0; @@ -136,7 +136,7 @@ InitFixedTraps(XParms xp, Parms p, int64_t reps) size = p->special; numTraps = p->objects; - traps = (XTrap *)malloc(numTraps * sizeof(XTrap)); + traps = malloc(numTraps * sizeof(XTrap)); curTrap = traps; x = size; y = 0; @@ -273,7 +273,7 @@ InitFixedTrapezoids(XParms xp, Parms p, int64_t reps) size = p->special; numTraps = p->objects; - trapezoids = (XTrapezoid *)malloc(numTraps * sizeof(XTrapezoid)); + trapezoids = malloc(numTraps * sizeof(XTrapezoid)); curTrap = trapezoids; x = size; y = 0; |