From 8c4425a00fd4590167e2213f254ae911a815b4c8 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 20 Feb 2014 07:53:50 -0800 Subject: [PATCH] Fix warnings. --- format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;