forked from fmtlib/fmt
Fix warnings.
This commit is contained in:
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;
|
||||||
|
Reference in New Issue
Block a user