summaryrefslogtreecommitdiffstats
path: root/core/ustring.cpp
diff options
context:
space:
mode:
authorAndrii Doroshenko (Xrayez) <xrayez@gmail.com>2019-10-04 14:35:01 +0300
committerAndrii Doroshenko (Xrayez) <xrayez@gmail.com>2019-10-04 15:51:13 +0300
commita0d00c0e99aaf7844a330c8e320c0021abb4a3e3 (patch)
treeb894797b9538690ccaaed429665a9cfd163e63e3 /core/ustring.cpp
parent3b2033b9419f76ffaff47654372df1559b6c2b95 (diff)
downloadredot-engine-a0d00c0e99aaf7844a330c8e320c0021abb4a3e3.tar.gz
Bind the `String::humanize_size` method
The method signature is also changed to use `uint64_t` instead of `size_t` for it to be Variant-compatible.
Diffstat (limited to 'core/ustring.cpp')
-rw-r--r--core/ustring.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ustring.cpp b/core/ustring.cpp
index 07caa3a018..adae3ca1a3 100644
--- a/core/ustring.cpp
+++ b/core/ustring.cpp
@@ -3298,7 +3298,7 @@ static int _humanize_digits(int p_num) {
return 0;
}
-String String::humanize_size(size_t p_size) {
+String String::humanize_size(uint64_t p_size) {
uint64_t _div = 1;
Vector<String> prefixes;