mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-01 22:20:06 +00: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;
|
||||
typedef typename internal::IntTraits<T>::MainType UnsignedType;
|
||||
UnsignedType abs_value = value;
|
||||
if (value < 0) {
|
||||
if (internal::IsNegative(value)) {
|
||||
sign = '-';
|
||||
++size;
|
||||
abs_value = 0 - abs_value;
|
||||
|
Loading…
Reference in New Issue
Block a user