From cf6a0c90666eb768adfc869c5d2350aa557e3f52 Mon Sep 17 00:00:00 2001 From: Richard Brooksby Date: Wed, 11 Jan 2023 18:18:51 +0000 Subject: [PATCH] Adding narrowing cast to suppress warning on fri6ll. --- code/vmix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/vmix.c b/code/vmix.c index 5a4b258aad..167ab614fa 100644 --- a/code/vmix.c +++ b/code/vmix.c @@ -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