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