From cbcc0eacd5cd7af661ec99dcdc8e5a69a8a7ca5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 11 Jun 2020 11:39:21 +0200 Subject: [PATCH] String: Use ABS macro in padding code Follow-up to #39261. --- core/ustring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/ustring.cpp b/core/ustring.cpp index 079f18d202a..444338d5ae8 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);