diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-06-11 11:39:21 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2020-06-11 11:39:21 +0200 |
commit | cbcc0eacd5cd7af661ec99dcdc8e5a69a8a7ca5d (patch) | |
tree | 84fcd22df94843ff3d48cf912e07107c0158749f /core | |
parent | bcac39551d3f29f6c0171eacff55a1affb24dae4 (diff) | |
download | redot-engine-cbcc0eacd5cd7af661ec99dcdc8e5a69a8a7ca5d.tar.gz |
String: Use ABS macro in padding code
Follow-up to #39261.
Diffstat (limited to 'core')
-rw-r--r-- | core/ustring.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ustring.cpp b/core/ustring.cpp index 079f18d202..444338d5ae 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -4144,7 +4144,7 @@ String String::sprintf(const Array &values, bool *error) const { double value = values[value_index]; bool is_negative = (value < 0); - String str = String::num(abs(value), min_decimals); + String str = String::num(ABS(value), min_decimals); // Pad decimals out. str = str.pad_decimals(min_decimals); |