diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-26 02:53:49 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-26 02:53:49 +0300 |
commit | 15f3cf7f8f956a6372b6a99788b622946ba3d1e5 (patch) | |
tree | 0ad4fe0aeb21ea4773088b0c92cc7bcb48d5e2a5 /intern/cycles | |
parent | e746999aa937f6de638a339d52e1f2e494014919 (diff) |
Cleanup: replace C-style casts with functional casts for numeric types
Some changes missed from f68cfd6bb078482c4a779a6e26a56e2734edb5b8.
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/blender/python.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/blender/python.cpp b/intern/cycles/blender/python.cpp index 1e33b0b7207..077875aecb2 100644 --- a/intern/cycles/blender/python.cpp +++ b/intern/cycles/blender/python.cpp @@ -534,7 +534,7 @@ static PyObject *osl_update_node_func(PyObject * /*self*/, PyObject *args) socket_type = "NodeSocketBool"; data_type = BL::NodeSocket::type_BOOLEAN; if (param->validdefault) { - default_boolean = (bool)param->idefault[0]; + default_boolean = bool(param->idefault[0]); } } else { |