diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-01-09 11:00:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-01-09 11:07:14 +0300 |
commit | e718004edf3fc335d686cc2a0291f1f0df4eba32 (patch) | |
tree | 97416aa6724970fc430ece20940bd855fdcce6ed /source/blender/python/intern | |
parent | 246efd7286f6187e4dd4b3edcc79cccb1746bb1d (diff) |
Cleanup: use bool arguments & variables
Diffstat (limited to 'source/blender/python/intern')
-rw-r--r-- | source/blender/python/intern/bpy_interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c index 2bd71c27320..c54c78ae389 100644 --- a/source/blender/python/intern/bpy_interface.c +++ b/source/blender/python/intern/bpy_interface.c @@ -536,7 +536,7 @@ void BPY_DECREF(void *pyob_ptr) void BPY_DECREF_RNA_INVALIDATE(void *pyob_ptr) { const PyGILState_STATE gilstate = PyGILState_Ensure(); - const int do_invalidate = (Py_REFCNT((PyObject *)pyob_ptr) > 1); + const bool do_invalidate = (Py_REFCNT((PyObject *)pyob_ptr) > 1); Py_DECREF((PyObject *)pyob_ptr); if (do_invalidate) { pyrna_invalidate(pyob_ptr); |