diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2020-07-24 14:07:57 -0400 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2020-07-27 18:38:53 -0400 |
commit | 56e2c6c7043ca14159284b7b1f07e95d6fcf9a9e (patch) | |
tree | a332137aefabdfc21f7f5f317096a1895e9f1dc9 /core/string_buffer.h | |
parent | 4e825539e590c6ce06e54fbb05571efce7fb181c (diff) | |
download | redot-engine-56e2c6c7043ca14159284b7b1f07e95d6fcf9a9e.tar.gz |
Make all String float conversion methods be 64-bit
Diffstat (limited to 'core/string_buffer.h')
-rw-r--r-- | core/string_buffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/string_buffer.h b/core/string_buffer.h index 956a6333d9..f9cf31075a 100644 --- a/core/string_buffer.h +++ b/core/string_buffer.h @@ -150,7 +150,7 @@ String StringBuffer<SHORT_BUFFER_SIZE>::as_string() { template <int SHORT_BUFFER_SIZE> double StringBuffer<SHORT_BUFFER_SIZE>::as_double() { current_buffer_ptr()[string_length] = '\0'; - return String::to_double(current_buffer_ptr()); + return String::to_float(current_buffer_ptr()); } template <int SHORT_BUFFER_SIZE> |