forked from boostorg/regex
resolve some warnings
This commit is contained in:
1 parent
867cc5f0fc
commit
39f1cc0238
8 files changed
+21
-12
No files matched your search
@@ -29,9 +29,9 @@
|
||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
|
||||
|
||||
template <int N>
|
||||
int array_size(const char* (&p)[N])
|
||||
size_t array_size(const char* (&p)[N])
|
||||
{
|
||||
for(int i = 0; i < N; ++i)
|
||||
for(size_t i = 0; i < N; ++i)
|
||||
if(p[i] == 0)
|
||||
return i;
|
||||
return N;
|
||||
|
||||
Reference in new issue
Block a user