diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-01-03 14:35:29 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-01-03 14:35:29 +0400 |
commit | c5cb42f40285fca072e8378bdadf11c674b90340 (patch) | |
tree | ab3908d2f6fb62eaa7405a68aec18d9903e90f30 /source/blender/python/bmesh | |
parent | a288644b1eaef1017d21368bd04c3ee1f038ff4c (diff) |
Code Cleanup: use bool for bmesh operator boolean mapping functions
Diffstat (limited to 'source/blender/python/bmesh')
-rw-r--r-- | source/blender/python/bmesh/bmesh_py_ops_call.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_ops_call.c b/source/blender/python/bmesh/bmesh_py_ops_call.c index ec9f2865582..5b3eabe5ca4 100644 --- a/source/blender/python/bmesh/bmesh_py_ops_call.c +++ b/source/blender/python/bmesh/bmesh_py_ops_call.c @@ -639,7 +639,7 @@ static PyObject *bpy_slot_to_py(BMesh *bm, BMOpSlot *slot) void *ele_val = BLI_ghashIterator_getValue(&hash_iter); PyObject *py_key = BPy_BMElem_CreatePyObject(bm, ele_key); - PyObject *py_val = PyBool_FromLong(*(int *)&ele_val); + PyObject *py_val = PyBool_FromLong(*(bool *)&ele_val); PyDict_SetItem(item, py_key, py_val); Py_DECREF(py_key); |