Unsigned error in index.c

On FreeBSD 13.0-CURRENT its compiler clang-11.0.0 complains:
index.c:388:14: error: comparison of integers of different signs: 'int' and 'unsigned int' [-Werror,-Wsign-compare]
                for (i=0; i<len+1; i++) {
                          ~^~~~~~
This commit is contained in:
Rainer Hurling
2020-10-24 20:29:46 +02:00
committed by GitHub
parent ebf999f8c3
commit 5b292e0063

View File

@@ -383,7 +383,7 @@ mdb_index_hash_text(MdbHandle *mdb, char *text, char *hash)
{
#ifdef __MSWSTR_H__
char *out_ptr = alloca((len+1)*2);
int i;
unsigned int i;
// mdb_ascii2unicode doesn't work, we don't want unicode compression!
for (i=0; i<len+1; i++) {
out_ptr[i*2] = text[i];