From 3e53ac2451bd89ff0288029252d89a611e5356a5 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 23 Jun 2014 08:48:42 -0700 Subject: [PATCH] Fix warnings. --- format.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/format.cc b/format.cc index 4f26b4d0..b8fa2c84 100644 --- a/format.cc +++ b/format.cc @@ -622,7 +622,7 @@ unsigned fmt::BasicWriter::PrintfParser::ParseHeader( width = arg.int_value; if (arg.int_value < 0) { spec.align_ = ALIGN_LEFT; - width = -width; + width = 0 - width; } break; case UINT: @@ -632,7 +632,7 @@ unsigned fmt::BasicWriter::PrintfParser::ParseHeader( width = arg.long_long_value; if (arg.long_long_value < 0) { spec.align_ = ALIGN_LEFT; - width = -width; + width = 0 - width; } break; case ULONG_LONG: