diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-01-10 19:22:19 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-01-10 19:22:19 +0400 |
commit | 1c99e6aa0b79403d83325eb831e2efab6ae4e255 (patch) | |
tree | 62b8feead2e646eaa7e8533fa5979ecbc724c7c8 /source/blender/python/intern/bpy_app.c | |
parent | e56844e98b5ab2332de301c9f85efdf9c2478558 (diff) |
pyapi internal api code: check for == -1 rather then < 0, for known error returns.
Diffstat (limited to 'source/blender/python/intern/bpy_app.c')
-rw-r--r-- | source/blender/python/intern/bpy_app.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_app.c b/source/blender/python/intern/bpy_app.c index bea63d2b6e8..3e2353c3571 100644 --- a/source/blender/python/intern/bpy_app.c +++ b/source/blender/python/intern/bpy_app.c @@ -182,7 +182,7 @@ static int bpy_app_debug_set(PyObject *UNUSED(self), PyObject *value, void *clos const int flag = GET_INT_FROM_POINTER(closure); const int param = PyObject_IsTrue(value); - if (param < 0) { + if (param == -1) { PyErr_SetString(PyExc_TypeError, "bpy.app.debug can only be True/False"); return -1; } |