summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2021-05-18 18:31:46 +0300
committerYuri Roubinsky <chaosus89@gmail.com>2021-05-18 19:01:02 +0300
commit96b2e54c70a38f2f85a728ff16674ccfc5d6d950 (patch)
tree6f1342df86a307b36773acb430bd3f4bb4c4dfc2 /servers
parent20765800803e7864fa6cd0b641c129c349429e6e (diff)
Fix typo in shader_language.cpp
Diffstat (limited to 'servers')
-rw-r--r--servers/rendering/shader_language.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/shader_language.cpp b/servers/rendering/shader_language.cpp
index a81306b97d..43eaf213d7 100644
--- a/servers/rendering/shader_language.cpp
+++ b/servers/rendering/shader_language.cpp
@@ -3186,7 +3186,7 @@ bool ShaderLanguage::_check_node_constness(const Node *p_node) const {
switch (p_node->type) {
case Node::TYPE_OPERATOR: {
OperatorNode *op_node = (OperatorNode *)p_node;
- for (int i = (1 ? op_node->op == OP_CALL : 0); i < op_node->arguments.size(); i++) {
+ for (int i = int(op_node->op == OP_CALL); i < op_node->arguments.size(); i++) {
if (!_check_node_constness(op_node->arguments[i])) {
return false;
}