diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2018-11-27 21:58:00 -0500 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2018-11-28 05:03:24 -0500 |
commit | cb01268562a47e6a1c32559f58fbadd46e52d304 (patch) | |
tree | 8466e05cbf670863759899e0fd7d67d6a44ca1cb /main/tests/test_shader_lang.cpp | |
parent | aa08ef2bed34510cfb18ce3e1e5cdd9c009981be (diff) |
Fix many errors found by PVS-Studio
Fix errors 2, 3, 4, 6, 8, 9, 11, 12, 13, 14, and 15.
Diffstat (limited to 'main/tests/test_shader_lang.cpp')
-rw-r--r-- | main/tests/test_shader_lang.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/tests/test_shader_lang.cpp b/main/tests/test_shader_lang.cpp index 9df5973376..357143e499 100644 --- a/main/tests/test_shader_lang.cpp +++ b/main/tests/test_shader_lang.cpp @@ -180,7 +180,7 @@ static String dump_node_code(SL::Node *p_node, int p_level) { String scode = dump_node_code(bnode->statements[i], p_level); - if (bnode->statements[i]->type == SL::Node::TYPE_CONTROL_FLOW || bnode->statements[i]->type == SL::Node::TYPE_CONTROL_FLOW) { + if (bnode->statements[i]->type == SL::Node::TYPE_CONTROL_FLOW) { code += scode; //use directly } else { code += _mktab(p_level) + scode + ";\n"; |