From d618f8baacafa76944e691261a7ccf3e90c25358 Mon Sep 17 00:00:00 2001 From: vitaut Date: Wed, 25 Mar 2015 09:29:40 -0700 Subject: [PATCH] Fix NonZero --- format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format.h b/format.h index b371151c..ca3e5e96 100644 --- a/format.h +++ b/format.h @@ -704,7 +704,7 @@ void format_windows_error(fmt::Writer &out, int error_code, // allocating an array of 0 size. template struct NonZero { - enum { VALUE = N > 0 ? N : 0 }; + enum { VALUE = N > 0 ? N : 1 }; }; // A formatting argument. It is a POD type to allow storage in