Fast fix for operator precedence

This commit is contained in:
Dude so hot authored and renovate[bot] committed 2024-11-04 20:57:10 +08:00
1 parent 8ca0a32932
commit 2e6ff78662
1 file changed
+1 -1
+1 -1
View File
@@ -152,7 +152,7 @@ static int archive_map_entries_index(archive_ctx *ctx, bool sort) {
static void archive_prealloc_mempool() {
mempoolofs = calloc(entryCount, sizeof(size_t));
for (int i = 0; i < entryCount; ++i) {
mempoolofs[i] = PAGE_ALIGN(entries[i].size) + i ? mempoolofs[i - 1] : 0;
mempoolofs[i] = PAGE_ALIGN(entries[i].size) + (i ? mempoolofs[i - 1] : 0);
}
mempool = mmap(0, MEMPOOL_SIZE, PROT_RW, MAP_ANON_POOL, -1, 0);
if (mempool == MAP_FAILED) {