summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-07-28 01:27:34 +0200
committerGitHub <noreply@github.com>2020-07-28 01:27:34 +0200
commita6916d1f179f760f015f385c01729d205af97abe (patch)
tree50d664500e5ce164ed8498f34e84aef35678f225 /servers
parent932b75e2477dd97775b5b29639c514e091a83cf2 (diff)
parent56e2c6c7043ca14159284b7b1f07e95d6fcf9a9e (diff)
Merge pull request #40678 from aaronfranke/string-float64
Make all String float conversion methods be 64-bit
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 535011710d..d6acad83f7 100644
--- a/servers/rendering/shader_language.cpp
+++ b/servers/rendering/shader_language.cpp
@@ -645,7 +645,7 @@ ShaderLanguage::Token ShaderLanguage::_get_token() {
if (hexa_found) {
tk.constant = (double)str.hex_to_int(true);
} else {
- tk.constant = str.to_double();
+ tk.constant = str.to_float();
}
tk.line = tk_line;