From 4f7ad14c2b779442e1a6bf078e6ad3473d7df00b Mon Sep 17 00:00:00 2001 From: vitaut Date: Wed, 8 Jul 2015 07:52:03 -0700 Subject: [PATCH] Fix MSVC warning --- format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format.h b/format.h index f56242fc..e0e1a5d5 100644 --- a/format.h +++ b/format.h @@ -1145,7 +1145,7 @@ class ArgVisitor { case Arg::ULONG_LONG: return FMT_DISPATCH(visit_ulong_long(arg.ulong_long_value)); case Arg::BOOL: - return FMT_DISPATCH(visit_bool(arg.int_value)); + return FMT_DISPATCH(visit_bool(arg.int_value != 0)); case Arg::CHAR: return FMT_DISPATCH(visit_char(arg.int_value)); case Arg::DOUBLE: