1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 13:58:49 +00:00

[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
parent f0f7b56d77
commit 2e6ec48b81
+1 -1
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;