Skip to content

Commit

Permalink
work around to make it compile with gcc-mips 4.8.1
Browse files Browse the repository at this point in the history
gcc-mips generates an invalid opcode.
this little fix works-around it.

More info in this thread:
https://chipmunk-physics.net/forum/viewtopic.php?f=4&t=4207
  • Loading branch information
ricardoquesada committed Feb 4, 2015
1 parent 73fb218 commit 543560b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpPolyShape.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ cpPolyShapePointQuery(cpPolyShape *poly, cpVect p, cpPointQueryInfo *info){

for(int i=0; i<count; i++){
cpVect v1 = planes[i].v0;
if(cpvdot(planes[i].n, cpvsub(p, v1)) > 0.0f) outside = cpTrue;
outside = cpvdot(planes[i].n, cpvsub(p,v1)) > 0.0f;

cpVect closest = cpClosetPointOnSegment(p, v0, v1);

Expand Down

0 comments on commit 543560b

Please sign in to comment.