summaryrefslogtreecommitdiffstats
path: root/core/ustring.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-06-11 11:39:21 +0200
committerRémi Verschelde <rverschelde@gmail.com>2020-06-11 11:39:21 +0200
commitcbcc0eacd5cd7af661ec99dcdc8e5a69a8a7ca5d (patch)
tree84fcd22df94843ff3d48cf912e07107c0158749f /core/ustring.cpp
parentbcac39551d3f29f6c0171eacff55a1affb24dae4 (diff)
downloadredot-engine-cbcc0eacd5cd7af661ec99dcdc8e5a69a8a7ca5d.tar.gz
String: Use ABS macro in padding code
Follow-up to #39261.
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 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);