Line 247 of cpPolyline -
|
set->lines = (cpPolyline**) cpcalloc(set->capacity, sizeof(cpPolyline)); |
is allocating an array of size cpPolyline objects and assigning it to a cpPolyline** - should the sizeof be sizeof(cpPolyline*) ?
XCode analyzer complains:

Also has the same problem with
|
set->lines = (cpPolyline**) cprealloc(set->lines, set->capacity*sizeof(cpPolyline)); |
Line 247 of cpPolyline -
Chipmunk2D/src/cpPolyline.c
Line 247 in edf83e5
is allocating an array of size cpPolyline objects and assigning it to a cpPolyline** - should the sizeof be sizeof(cpPolyline*) ?
XCode analyzer complains:
Also has the same problem with
Chipmunk2D/src/cpPolyline.c
Line 316 in edf83e5