[misc/mar] Don't use a signed type for a length parameter.

This commit is contained in:
Moonchild 2020-08-28 09:43:24 +00:00 committed by Roy Tam
commit 2e6ec48b81

View file

@ -29,7 +29,7 @@ static uint32_t mar_hash_name(const char *name) {
return val % TABLESIZE;
}
static int mar_insert_item(MarFile *mar, const char *name, int namelen,
static int mar_insert_item(MarFile *mar, const char *name, uint32_t namelen,
uint32_t offset, uint32_t length, uint32_t flags) {
MarItem *item, *root;
uint32_t hash;