mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-01-02 20:42:14 +08:00
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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user