Skip to content

Commit b08ca66

Browse files
authored
Fix type of FormatListN template parameter (#74)
The fix changes type of FormatListN template parameter from int to std::size_t. Without the fix and with strict gcc compiler settings we get: tinyformat.h:1019:21: error: conversion from ‘long unsigned int’ to ‘int’ may change value [-Werror=conversion] 1019 | detail::FormatListN<sizeof...(Args)> makeFormatList(const Args&... args)
1 parent 4503a27 commit b08ca66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tinyformat.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ typedef const FormatList& FormatListRef;
957957
namespace detail {
958958

959959
// Format list subclass with fixed storage to avoid dynamic allocation
960-
template<int N>
960+
template<std::size_t N>
961961
class FormatListN : public FormatList
962962
{
963963
public:

0 commit comments

Comments
 (0)