summaryrefslogtreecommitdiff
path: root/servers/rendering/shader_language.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-06-18 16:14:14 +0200
committerGitHub <noreply@github.com>2021-06-18 16:14:14 +0200
commit92f20fd70e6957cd65ccb7837fdc28f9b1e4a315 (patch)
tree0e1bc221f9883213d7092fc3858788ee14deecf8 /servers/rendering/shader_language.cpp
parent98b5280d1fe6e6287c564d80a4ae7b61fc7bd4b0 (diff)
parentb6af2a29eb1f96518c89a35a6a50a6309673d9f0 (diff)
Merge pull request #49659 from LightningAA/string-valid-integer-to-int
Diffstat (limited to 'servers/rendering/shader_language.cpp')
-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 8ed774f8e7..9b2ba36358 100644
--- a/servers/rendering/shader_language.cpp
+++ b/servers/rendering/shader_language.cpp
@@ -631,7 +631,7 @@ ShaderLanguage::Token ShaderLanguage::_get_token() {
if (!_is_number(last_char)) {
return _make_token(TK_ERROR, "Invalid (integer) numeric constant");
}
- if (!str.is_valid_integer()) {
+ if (!str.is_valid_int()) {
return _make_token(TK_ERROR, "Invalid numeric constant");
}
}