mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 21:16:56 +00:00
Fix warnings.
This commit is contained in:
parent
d0587445cb
commit
3e53ac2451
@ -622,7 +622,7 @@ unsigned fmt::BasicWriter<Char>::PrintfParser::ParseHeader(
|
||||
width = arg.int_value;
|
||||
if (arg.int_value < 0) {
|
||||
spec.align_ = ALIGN_LEFT;
|
||||
width = -width;
|
||||
width = 0 - width;
|
||||
}
|
||||
break;
|
||||
case UINT:
|
||||
@ -632,7 +632,7 @@ unsigned fmt::BasicWriter<Char>::PrintfParser::ParseHeader(
|
||||
width = arg.long_long_value;
|
||||
if (arg.long_long_value < 0) {
|
||||
spec.align_ = ALIGN_LEFT;
|
||||
width = -width;
|
||||
width = 0 - width;
|
||||
}
|
||||
break;
|
||||
case ULONG_LONG:
|
||||
|
Loading…
Reference in New Issue
Block a user