meiyunyang / chipmunk-physics

Automatically exported from code.google.com/p/chipmunk-physics
MIT License
0 stars 0 forks source link

[patch] 3 warnings appears when "implicit conversion to 32 bit" is enabled in Chipmunk 5.2 #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Install Chipmunk v5.2.
Open Xcode + iphone project
Enable "implicit conversion to 32 bit" gcc option
3 warnings will appear

What is the expected output? What do you see instead?
These 3 warnings can be easily removed using ints instead of cpFloats.

In chipmunk.c# cpMomentForBox:
 12.0 could be replaced by 12

In cpPolyShape.c#cpBoxShapeInit
 2.0 could by replaced by 2.

What version of the product are you using? On what operating system?
Chipmunk 5.2 + Xcode + iPhone

Please provide any additional information below.
Patch attached

Original issue reported on code.google.com by ricardoq...@gmail.com on 23 Feb 2010 at 1:48

Attachments:

GoogleCodeExporter commented 8 years ago
This was fixed a while back. Forgot to close the case.

Original comment by slemb...@gmail.com on 30 Jul 2010 at 1:33