mirror of
https://github.com/fmtlib/fmt.git
synced 2025-09-15 15:49:45 -04:00
Fix warnings.
This commit is contained in:
parent
04b3432238
commit
8c4425a00f
2
format.h
2
format.h
@ -862,7 +862,7 @@ void BasicWriter<Char>::FormatInt(T value, const Spec &spec) {
|
|||||||
char sign = 0;
|
char sign = 0;
|
||||||
typedef typename internal::IntTraits<T>::MainType UnsignedType;
|
typedef typename internal::IntTraits<T>::MainType UnsignedType;
|
||||||
UnsignedType abs_value = value;
|
UnsignedType abs_value = value;
|
||||||
if (value < 0) {
|
if (internal::IsNegative(value)) {
|
||||||
sign = '-';
|
sign = '-';
|
||||||
++size;
|
++size;
|
||||||
abs_value = 0 - abs_value;
|
abs_value = 0 - abs_value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user