summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhungrymonkey <boringmonkey@gmail.com>2018-01-29 15:45:46 -0800
committerhungrymonkey <boringmonkey@gmail.com>2018-01-29 15:45:46 -0800
commitd2f1c87063162b284d2e13139eb4ec6bcd9662d4 (patch)
treee7f5f43df423befeeb6923814ae106db98e0da26
parent4caadae0f15d658d464d125829039a2e35c68124 (diff)
Change function signature from float to double to match type get_doubleCloses #16160
-rw-r--r--core/io/stream_peer.cpp2
-rw-r--r--core/io/stream_peer.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/io/stream_peer.cpp b/core/io/stream_peer.cpp
index f6c4948fc3..927b9f6366 100644
--- a/core/io/stream_peer.cpp
+++ b/core/io/stream_peer.cpp
@@ -310,7 +310,7 @@ float StreamPeer::get_float() {
return decode_float(buf);
}
-float StreamPeer::get_double() {
+double StreamPeer::get_double() {
uint8_t buf[8];
get_data(buf, 8);
diff --git a/core/io/stream_peer.h b/core/io/stream_peer.h
index ff9ae788ec..605b0a7980 100644
--- a/core/io/stream_peer.h
+++ b/core/io/stream_peer.h
@@ -83,7 +83,7 @@ public:
uint64_t get_u64();
int64_t get_64();
float get_float();
- float get_double();
+ double get_double();
String get_string(int p_bytes);
String get_utf8_string(int p_bytes);
Variant get_var();