summaryrefslogtreecommitdiff
path: root/core/fxcrt
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt')
-rw-r--r--core/fxcrt/bytestring.cpp2
-rw-r--r--core/fxcrt/bytestring.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/fxcrt/bytestring.cpp b/core/fxcrt/bytestring.cpp
index 704cdd46aa..ad3814b57e 100644
--- a/core/fxcrt/bytestring.cpp
+++ b/core/fxcrt/bytestring.cpp
@@ -783,7 +783,7 @@ void ByteString::TrimLeft() {
TrimLeft("\x09\x0a\x0b\x0c\x0d\x20");
}
-ByteString ByteString::FormatFloat(float d, int precision) {
+ByteString ByteString::FormatFloat(float d) {
char buf[32];
return ByteString(buf, FX_ftoa(d, buf));
}
diff --git a/core/fxcrt/bytestring.h b/core/fxcrt/bytestring.h
index 6d5843efcd..f534b08b8a 100644
--- a/core/fxcrt/bytestring.h
+++ b/core/fxcrt/bytestring.h
@@ -182,7 +182,7 @@ class ByteString {
uint32_t GetID() const { return AsStringView().GetID(); }
static ByteString FormatInteger(int i);
- static ByteString FormatFloat(float f, int precision = 0);
+ static ByteString FormatFloat(float f);
protected:
using StringData = StringDataTemplate<char>;