Fix NonZero
This commit is contained in:
1 parent
885d1a1c64
commit
d618f8baac
1 file changed
+1
-1
@@ -704,7 +704,7 @@ void format_windows_error(fmt::Writer &out, int error_code,
|
||||
// allocating an array of 0 size.
|
||||
template <unsigned N>
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user