Skip to content

Commit

Permalink
Adding narrowing cast to suppress warning on fri6ll.
Browse files Browse the repository at this point in the history
  • Loading branch information
rptb1 committed Jan 11, 2023
1 parent 407fae8 commit cf6a0c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/vmix.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ Res VMMap(VM vm, Addr base, Addr limit)

size = AddrOffset(base, limit);

result = mmap((void *)base, (size_t)size, vm_prot,
result = mmap((void *)base, (size_t)size, (int)vm_prot,
MAP_ANON | MAP_PRIVATE | MAP_FIXED,
-1, 0);
if (MAYBE_HARDENED_RUNTIME && result == MAP_FAILED && errno == EACCES
Expand Down

0 comments on commit cf6a0c9

Please sign in to comment.