From 245c11be0849aa4fe1ec825ff1d253c51ac9d32f Mon Sep 17 00:00:00 2001 From: hungrymonkey Date: Mon, 29 Jan 2018 15:45:46 -0800 Subject: [PATCH] Change function signature from float to double to match type get_doubleCloses #16160 (cherry picked from commit d2f1c87063162b284d2e13139eb4ec6bcd9662d4) --- core/io/stream_peer.cpp | 2 +- core/io/stream_peer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/io/stream_peer.cpp b/core/io/stream_peer.cpp index f6c4948fc33..927b9f6366e 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 ff9ae788ec8..605b0a7980f 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();