summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/servers/rendering/test_shader_preprocessor.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/servers/rendering/test_shader_preprocessor.h b/tests/servers/rendering/test_shader_preprocessor.h
index 41a009ccf5..d65eb522e8 100644
--- a/tests/servers/rendering/test_shader_preprocessor.h
+++ b/tests/servers/rendering/test_shader_preprocessor.h
@@ -52,8 +52,7 @@ bool is_variable_char(unsigned char c) {
}
bool is_operator_char(unsigned char c) {
- static const std::string operators = "<>=+-*/";
- return operators.find(c) != std::string::npos;
+ return (c == '*') || (c == '+') || (c == '-') || (c == '/') || ((c >= '<') && (c <= '>'));
}
// Remove unnecessary spaces from a line.