Skip to content

Commit

Permalink
process: Fix warning
Browse files Browse the repository at this point in the history
JIRA: RTOS-555
  • Loading branch information
agkaminski committed Aug 11, 2023
1 parent 619f554 commit 6311f6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proc/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ int process_load64(vm_map_t *map, vm_object_t *o, offs_t base, void *iehdr, size
continue;
}

vaddr = (void *)((ptr_t)(phdr->p_vaddr & ~(phdr->p_align - 1)));
vaddr = (void *)((ptr_t)(phdr->p_vaddr & ~((ptr_t)phdr->p_align - 1)));
offs = phdr->p_offset & ~(phdr->p_align - 1);
misalign = phdr->p_offset & (phdr->p_align - 1);
filesz = phdr->p_filesz ? (phdr->p_filesz + misalign) : 0;
Expand Down

0 comments on commit 6311f6a

Please sign in to comment.