Skip to content

Commit

Permalink
String: Use ABS macro in padding code
Browse files Browse the repository at this point in the history
Follow-up to #39261.
  • Loading branch information
akien-mga committed Jun 11, 2020
1 parent bcac395 commit cbcc0ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/ustring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cbcc0ea

Please sign in to comment.