String: Use ABS macro in padding code

Follow-up to #39261.

(cherry picked from commit cbcc0eacd5)
This commit is contained in:
Rémi Verschelde 2020-06-11 11:39:21 +02:00
parent e241dae44d
commit 362193db6a
1 changed files with 1 additions and 1 deletions

View File

@ -4212,7 +4212,7 @@ String String::sprintf(const Array &values, bool *error) const {
double value = values[value_index]; double value = values[value_index];
bool is_negative = (value < 0); bool is_negative = (value < 0);
String str = String::num(abs(value), min_decimals); String str = String::num(ABS(value), min_decimals);
// Pad decimals out. // Pad decimals out.
str = str.pad_decimals(min_decimals); str = str.pad_decimals(min_decimals);