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>2012-04-23 19:54:43 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-23 19:54:43 +0400
commitbfcdd452455f5075cd3150623f513bb9f70e4876 (patch)
tree2df678fbfd6053047caacbc40530f47590781bb7 /source/blender/python/bmesh
parent9d40c3046b12096dfcc2c98b9972b6e7fb51eb57 (diff)
corrections from an article about using PVS-Studio static checker with blender - http://www.viva64.com/en/b/0145/
Diffstat (limited to 'source/blender/python/bmesh')
-rw-r--r--source/blender/python/bmesh/bmesh_py_types_customdata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_types_customdata.c b/source/blender/python/bmesh/bmesh_py_types_customdata.c
index 28252a98cf6..91104fb23f5 100644
--- a/source/blender/python/bmesh/bmesh_py_types_customdata.c
+++ b/source/blender/python/bmesh/bmesh_py_types_customdata.c
@@ -511,8 +511,8 @@ static PyObject *bpy_bmlayercollection_subscript_slice(BPy_BMLayerCollection *se
BPY_BM_CHECK_OBJ(self);
- if (start >= start) start = len - 1;
- if (stop >= stop) stop = len - 1;
+ if (start >= len) start = len - 1;
+ if (stop >= len) stop = len - 1;
tuple = PyTuple_New(stop - start);