Fix issue363:Unable to extract large 7z files.
Properly changing a variable type up to uint64_t.
This commit is contained in:
1 parent
14ac66073a
commit
dabd6eb78d
1 file changed
+1
-1
@@ -1663,7 +1663,7 @@ parse_7zip_uint64(struct archive_read *a, uint64_t *val)
|
||||
mask >>= 1;
|
||||
continue;
|
||||
}
|
||||
*val += (avail & (mask -1)) << (8 * i);
|
||||
*val += ((uint64_t)(avail & (mask -1))) << (8 * i);
|
||||
break;
|
||||
}
|
||||
return (0);
|
||||
|
||||
Reference in new issue
Block a user