diff options
author | Joseph Gilbert <ascotan@gmail.com> | 2007-03-02 00:30:48 +0300 |
---|---|---|
committer | Joseph Gilbert <ascotan@gmail.com> | 2007-03-02 00:30:48 +0300 |
commit | 585edac6d2ef35f9199940e9d45aaef412860e45 (patch) | |
tree | 7dffb1a303879a5d523d4ba592d310941379780b /source/blender/python/api2_2x/Geometry.c | |
parent | ccefcc8a79c1f200feecef6e11ba516953b7b5e2 (diff) |
various warnings fixes - mostly casting and initialization issues
Diffstat (limited to 'source/blender/python/api2_2x/Geometry.c')
-rw-r--r-- | source/blender/python/api2_2x/Geometry.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Geometry.c b/source/blender/python/api2_2x/Geometry.c index e0de63d842e..3ccbd207d57 100644 --- a/source/blender/python/api2_2x/Geometry.c +++ b/source/blender/python/api2_2x/Geometry.c @@ -225,7 +225,7 @@ static PyObject *M_Geometry_LineIntersect2D( PyObject * self, PyObject * args ) return newVectorObject(newvec, 2, Py_NEW); } - yi = ((b1y / fabs(b1x - b2x)) * fabs(b2x - a1x)) + ((b2y / fabs(b1x - b2x)) * fabs(b1x - a1x)); + yi = (float)(((b1y / fabs(b1x - b2x)) * fabs(b2x - a1x)) + ((b2y / fabs(b1x - b2x)) * fabs(b1x - a1x))); if (yi > MAX2(a1y, a2y)) {/* New point above seg1's vert line */ Py_RETURN_NONE; @@ -241,7 +241,7 @@ static PyObject *M_Geometry_LineIntersect2D( PyObject * self, PyObject * args ) } /* Can skip vert line check for seg 2 since its covered above. */ - xi = ((b1x / fabs(b1y - b2y)) * fabs(b2y - a1y)) + ((b2x / fabs(b1y - b2y)) * fabs(b1y - a1y)); + xi = (float)(((b1x / fabs(b1y - b2y)) * fabs(b2y - a1y)) + ((b2x / fabs(b1y - b2y)) * fabs(b1y - a1y))); if (xi > MAX2(a1x, a2x)) { /* New point right of hoz line1's */ Py_RETURN_NONE; } else if (xi < MIN2(a1x, a2x)) { /*New point left of seg1's hoz line */ |