From f406a42baa266dcaf441ba791075f4bcaa4aef45 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 6 Dec 2013 07:12:38 -0800 Subject: [PATCH] Fix a warning about long long. --- format.cc | 2 +- format.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/format.cc b/format.cc index 7bf98f48..d62820b7 100644 --- a/format.cc +++ b/format.cc @@ -519,7 +519,7 @@ void fmt::BasicFormatter::DoFormat() { ++s; ++num_open_braces_; const Arg &precision_arg = ParseArgIndex(s); - unsigned long long value = 0; + ULongLong value = 0; switch (precision_arg.type) { case INT: if (precision_arg.int_value < 0) diff --git a/format.h b/format.h index 4e06c8ff..7c37bc2a 100644 --- a/format.h +++ b/format.h @@ -66,6 +66,7 @@ # pragma warning(push) # pragma warning(disable: 4521) #endif + namespace fmt { namespace internal { @@ -939,6 +940,8 @@ class BasicFormatter { int num_open_braces_; int next_arg_index_; + typedef unsigned long long ULongLong; + friend class internal::FormatterProxy; // Forbid copying from a temporary as in the following example: