mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Undo branching reduction
This commit is contained in:
parent
8c88abde64
commit
5b8641dddf
@ -2983,8 +2983,7 @@ class format_int {
|
|||||||
bool negative = value < 0;
|
bool negative = value < 0;
|
||||||
if (negative) abs_value = 0 - abs_value;
|
if (negative) abs_value = 0 - abs_value;
|
||||||
str_ = format_decimal(abs_value);
|
str_ = format_decimal(abs_value);
|
||||||
str_[-1] = '-';
|
if (negative) *--str_ = '-';
|
||||||
str_ -= negative ? 1 : 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
Loading…
Reference in New Issue
Block a user