diff --git a/format.h b/format.h index 57c56491..4b8d4f4c 100644 --- a/format.h +++ b/format.h @@ -862,7 +862,7 @@ void BasicWriter::FormatInt(T value, const Spec &spec) { char sign = 0; typedef typename internal::IntTraits::MainType UnsignedType; UnsignedType abs_value = value; - if (value < 0) { + if (internal::IsNegative(value)) { sign = '-'; ++size; abs_value = 0 - abs_value;