Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-01-27 20:52:21 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-01-27 21:00:04 +0400
commita5c35fb27f090bb716a3bb49a69a56be80dff6d3 (patch)
treec2486c0781d2135c00ee58c78c042ba9d4f87b97 /source/blender/python/mathutils/mathutils_Vector.c
parent60287e23b53a273aae56c42502278991dbeee9e7 (diff)
Code cleanup: use booleans where appropriate
Diffstat (limited to 'source/blender/python/mathutils/mathutils_Vector.c')
-rw-r--r--source/blender/python/mathutils/mathutils_Vector.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/mathutils/mathutils_Vector.c b/source/blender/python/mathutils/mathutils_Vector.c
index 91055a55bfa..0e6864047a2 100644
--- a/source/blender/python/mathutils/mathutils_Vector.c
+++ b/source/blender/python/mathutils/mathutils_Vector.c
@@ -1261,7 +1261,7 @@ static int Vector_len(VectorObject *self)
return self->size;
}
/* sequence accessor (get): vector[index] */
-static PyObject *vector_item_internal(VectorObject *self, int i, const int is_attr)
+static PyObject *vector_item_internal(VectorObject *self, int i, const bool is_attr)
{
if (i < 0) i = self->size - i;
@@ -1289,7 +1289,7 @@ static PyObject *Vector_item(VectorObject *self, int i)
return vector_item_internal(self, i, false);
}
/* sequence accessor (set): vector[index] = value */
-static int vector_ass_item_internal(VectorObject *self, int i, PyObject *value, const int is_attr)
+static int vector_ass_item_internal(VectorObject *self, int i, PyObject *value, const bool is_attr)
{
float scalar;
if ((scalar = PyFloat_AsDouble(value)) == -1.0f && PyErr_Occurred()) { /* parsed item not a number */