mirror of
https://github.com/fmtlib/fmt.git
synced 2025-08-01 03:34:45 +02:00
Fix warnings.
This commit is contained in:
@@ -622,7 +622,7 @@ unsigned fmt::BasicWriter<Char>::PrintfParser::ParseHeader(
|
|||||||
width = arg.int_value;
|
width = arg.int_value;
|
||||||
if (arg.int_value < 0) {
|
if (arg.int_value < 0) {
|
||||||
spec.align_ = ALIGN_LEFT;
|
spec.align_ = ALIGN_LEFT;
|
||||||
width = -width;
|
width = 0 - width;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case UINT:
|
case UINT:
|
||||||
@@ -632,7 +632,7 @@ unsigned fmt::BasicWriter<Char>::PrintfParser::ParseHeader(
|
|||||||
width = arg.long_long_value;
|
width = arg.long_long_value;
|
||||||
if (arg.long_long_value < 0) {
|
if (arg.long_long_value < 0) {
|
||||||
spec.align_ = ALIGN_LEFT;
|
spec.align_ = ALIGN_LEFT;
|
||||||
width = -width;
|
width = 0 - width;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case ULONG_LONG:
|
case ULONG_LONG:
|
||||||
|
Reference in New Issue
Block a user