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 <campbell@blender.org>2022-09-26 02:53:49 +0300
committerCampbell Barton <campbell@blender.org>2022-09-26 02:53:49 +0300
commit15f3cf7f8f956a6372b6a99788b622946ba3d1e5 (patch)
tree0ad4fe0aeb21ea4773088b0c92cc7bcb48d5e2a5 /intern/cycles
parente746999aa937f6de638a339d52e1f2e494014919 (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.cpp2
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 {