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.
This commit is contained in:
Andrii Doroshenko (Xrayez)
2019-10-04 14:35:01 +03:00
parent 3b2033b941
commit a0d00c0e99
4 changed files with 18 additions and 2 deletions

View File

@ -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;