From 6cd59ad0124d8a22e8cbb77f87e8f0aa20633c59 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 21 Jul 2022 15:25:33 +0200 Subject: fix type-related compiler warnings --- src/kernel/arch/amd64/driver/fsroot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/arch/amd64/driver') diff --git a/src/kernel/arch/amd64/driver/fsroot.c b/src/kernel/arch/amd64/driver/fsroot.c index 5e48638..d6e943f 100644 --- a/src/kernel/arch/amd64/driver/fsroot.c +++ b/src/kernel/arch/amd64/driver/fsroot.c @@ -56,7 +56,7 @@ static int req_readcopy(struct vfs_request *req, const void *buf, size_t len) { static int handle(struct vfs_request *req) { assert(req->caller); - int id = (int)(long)req->id; + int id = (int)(long __force)req->id; switch (req->type) { case VFSOP_OPEN: if (exacteq(req, "/")) return HANDLE_ROOT; -- cgit v1.2.3